Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Mar 2006
    Posts
    5
    Member #
    12943
    hi all,

    i got a problem..
    iv got a list and some <p>'s in a div.

    for semantics, i want the list to appear after the paras, the list is examples of work.

    but visually, i want the list on the left of the p's.

    i can achieve this with floats if i put the list before the <p> but this isnt semantically correct to me.

    heres what im talking about

    example 1.
    this is how i want the page to look with the list on the left but is semanticaly wrong becasue the list appears before the describing paragraphs.

    http://www.xoof.net/gregs_things/list/list2.html

    example 2.
    this is how i want the source to be written but as you can see, the list while still floated appears a lot lower.. its quite wierd how the top of the list is inline with the top of the last <p>

    http://www.xoof.net/gregs_things/list/list.html


    thanks everyone

    greg

  2.  

  3. #2
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    So you want to code the list after the <p></p>'s?

    You could do using position: absolute.

    If I understand you correctly?

  4. #3
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    I'm trying to figure out why it's bad that the list appears before
    the <p>'s in your HTML file ... why does it matter?

    In fact, the list of things should be in one <div> and the content
    with all the <p>paragraphs should be in another <div>.

    I stuck it in this old example page I had laying around ...
    http://www.catpin.com/pc


  5. #4
    Junior Member
    Join Date
    Mar 2006
    Posts
    5
    Member #
    12943
    i agree with what you have done is fine, but
    i have another list in a separate div on the left that forms the navigation.

    the reason i want the list of images after the paragraphs is for semantic reasons. (for the structure of the content and its readability when viewd by *accessible* devices.

    i have however figured it out (with a little help from a friend)

    floated items align their tops with the top of the previous block level element. hence aligning to the top of the last <p>. So i wrapped all the <p>'s in a div and floated that right.. then floated the list right too and hey presto... URL to follow

    thanks all


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:16 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com