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 do I get the element after my horizontal css navigation bar to appear below it?

    How can I code CSS to make Table like?

    how to create 100% vertical line in css

    How to build dynamic css main/sub menu's (or do I need jquery)?

    How to capture table row on button click to add css class knockout js

    Achieved JS typewriter effect, can't figure out how to make it loop after last array item

    CSS how to align group of elements horizontally?

    How To select a specific Div from its Class with JS

    How to vertical-align text on this input box for IE

    Right side border gradient only with the newer webkit gradient syntax, also which browsers support this, and how to do it in those as well?

    How to resize the clockpicker?

    How to prevent long text from flowing out of a container

    how can I hide empty cells in a table with bootstrap 3

    How can i make div shape like this with css? [duplicate]

    Sidebar, Navigation and Content how to do it?

    How do I make a header above my navigation bar?

    How can I make kinetic.js full screen background view

    How to make an arrow pointing down after a section in HTML/CSS

    How to make a CSS button work correctly?

    CSS exit box how to? [closed]

    Bootstrap - how to clear css from element to start over?

    How to return a “text” in css less?

    How to get the value of css property with jQuery

    How do you create a transparent overlay with text upon mouse hover?

    How to make each element to be fully independend with CSS?

    How to make text box scroll vertical in overflow css html?

    How to vertically align the baseline of text to a set point in HTML/CSS

    How to programmatically ungroup CSS selectors?

    How do I maintain modularity with mixins?

    How to add a delay between cycles of css animation [duplicate]