How to make a tag go to the right as far as possible? [closed]


Tags: html,css

Problem :

How to make a <span></span> tag goes to the right as possible using CSS without the use of margin nor padding?

Not this way :

<span style="margin-left:1000px;">ABC</span>


Solution :

float:right

Generally speaking, unless your css has explicitly made a style class for it, such as Bootstrap, you may add right in your class or pull-right

<span class="mySpan">something</span>
.mySpan{ float:right}

General answer for a general question. If you have something more complicated, post your code.


    CSS Howto..

    How to align body of the webpage to center?

    Cakephp how to remove underline on links

    how to go bottom of a website like back to top using javascript?

    Can't make any different fonts show up on website with @font-face or google fonts

    How to include several nested CSS classes into rails .erb file?

    How to manage custom CSS?

    CSS Grow on hover adds padding to the bottom of an image, how do I stop this from happening?

    How to get CSS styling to shown on page? [closed]

    jQuery toggle slides DIV up and down, but UL content animates left to right. How can I make the content slide up and down?

    Html and css. Social buttons how to move them?

    How to addClass with css3 Animation?

    How to specify different Css for different Mobiles (BB, Iphone, Nexus… )

    How to keep image lumpted with last word in a paragraph

    How to set CSS on body tag to rotate a page using JavaScript

    How combine multiple media destinations (screen, print) with width restriction?

    How can I centre an unordered list of floated items to the page

    In a framework using rewrite rules, how best to integrate CSS and JS?

    How do I get this div to cover flash control (jw player)?

    How to use css value for javascript in IF-THEN construction? [closed]

    How can i change jquery-div creation to some other method

    How to use Open Sans font with cakePhp 3?

    How do I make my footer sit at the bottom of my content?

    How to dynamically reload a .css?

    How can I get these span elements to expand to fill their full height?

    How to set table cell padding from CSS?

    How to check if an element has a hover property and do something to another element in css [closed]

    Materialize CSS Showing errors on form fields

    How do I keep a mouse cursor from changing to 'selected text' in JQuery?

    How to change Polymer(1.0) paper-toolbar background colour?

    How to upgrade web project with latest fancy Bootstrap & SASS