dcsimg
www.webdeveloper.com
Results 1 to 6 of 6

Thread: Do things have to go in order.

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Posts
    110

    Do things have to go in order.

    Hi, if I put an image on the left side of the page, and I want one on the right side of the page, Do I have to put images in first, or could I put the 1st image in, then text in the middle of the page, then Image on right.
    Or must I put the images in first, then the text. Is their a order in which things must be done in css and html.

    If anyone can help me. thanks.
    Thanks Spufi and Major Payne for the info the other night.

  2. #2
    Join Date
    Feb 2012
    Location
    Bokaro Steel City (Jharkhand), India!
    Posts
    194
    As far as images and texts are concerned, no such order exists!

    It all depends upon your choice.

    ------------------------------------------------------------------------------

    Note: CSS is amazing!

  3. #3
    Join Date
    Aug 2010
    Location
    San Diego
    Posts
    242
    Are you talking about html or css? In html, generally block type things lay out like text from left to right top to bottom, but there are all kinds of positioning styles (like floats) that disrupt that flow.

    In CSS, the order doesn't matter except when there's a conflict, in which case (generally) the latter rule overrides the earlier one.

  4. #4
    Join Date
    Mar 2012
    Posts
    48
    its dont matter on the order you submit your code, its matter on how you wrote the code that they are in.

    in my opinion the best way to handle site structure is floated divs\elements, i never use positions and its working great in case you know whats you doing.

  5. #5
    Join Date
    Apr 2012
    Posts
    110

    Thanks,Can I use float bottom, if I want image at bottom.

    Thanks guys, thanks Chryaner. Ill try floats first, but may I ask, how do I put the image at the bottom of the page with float, cause I see there is a float-right, and left, but can you put float-bottom.

  6. #6
    Join Date
    Mar 2012
    Posts
    48
    Quote Originally Posted by wildguy2 View Post
    Thanks guys, thanks Chryaner. Ill try floats first, but may I ask, how do I put the image at the bottom of the page with float, cause I see there is a float-right, and left, but can you put float-bottom.
    youll have to define widths and height for every element in your page.

    when you define your elements, they will simply push each other.
    youll have to play with them and place them in their positions.
    for example, if you have elements on the top and you need to place elements on the bottom, you can define the height of the element on the top so it will push the element on below down to the bottom.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles