Can you do this with CSS?

Discussion in 'HTML & Website Design' started by TechMaster, Dec 3, 2008.

  1. #1
    Hi guys, Looking to tweak css standard to meet my requirements. I tried but haven't succeeded yet. The reasons I am still trying and asking you is someone has already done this (I guess).

    I wonder if this trick can be made possible with CSS, To...

    Declare div first but to display it at the bottom
    AND
    div declared last can be displayed at top?

    For example...

    ((In View Source Code))

    <div id="BBB" align="center"> content of BBB</div>
    <div id="TTT" align="center"> content of TTT</div>

    ((Display))

    Content of TTT
    Content of BBB

    Looking for prompt answer thanks.
     
    TechMaster, Dec 3, 2008 IP
  2. cheapez

    cheapez Active Member

    Messages:
    1,123
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    78
    #2
    I don't get what you are saying.
    but you can always call a div id in your style, and use it where and when ever you want no matter their positions. No need to tweak it.

    <style type="text/css">

    #divtop {
    clear: both;
    }

    #divbottom {
    clear: both;
    }

    </style>

    ----<body>----------

    <div id="divbottom">I like to call and use divbottom first if this is what you mean</div>
    <div id="divtop">after</div>
     
    cheapez, Dec 3, 2008 IP
  3. justinlorder

    justinlorder Peon

    Messages:
    4,160
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, it is quite easy.
    First declared div used absolute position, and let the div appears at the bottom.
    The last declared div used normal relative position, so it can appears on the top of the first declared div.

    Buddy, You must want to do the "seo" for the page !
    Actuallyl, It is very common.
     
    justinlorder, Dec 3, 2008 IP