Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

XHTML Columns - Content Floating

  • 17-12-2009 10:54pm
    #1
    Closed Accounts Posts: 20


    Hi, Having a problem with a web-page design (i'm a newbie at this so this is probably very straightforward but I can't seem to get it working)

    I have a table with two columns and in the left hand column I'm using divs to put in short blocks of formatted text (div id for a block of text with div classes to format the headings of the text etc.) This is working fine as the first block of text is at the top of the table and subsequent divs are directly underneath that, all the way down the column.

    However, when I try to do the same thing with the right hand column the first div ends up half-way down the page instead of starting up at the top, and I can't figure out why!

    The CSS I'm using is as follows:

    Div ID for left-hand column divs:

    #news{
    position:relative;
    float:left;
    width: 500px;
    left:10px;
    padding: 10px;
    }

    Div ID for right-hand column divs:
    #links {
    position:relative;
    float:right;
    width: 300px;
    right:10px;
    padding: 10px;
    }


    There's obviously LOADS more code than than but I'm not sure how much to put up here would be useful? Any help would be greatly appreciated as I've been working on this for hours and getting nowhere.

    Thanks!!!


Comments

  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    Moved from Development.


  • Registered Users, Registered Users 2 Posts: 2,120 ✭✭✭p


    Maybe you could just try something like:
    margin-top: 300px;


  • Registered Users, Registered Users 2 Posts: 2,793 ✭✭✭John_Mc


    set the table tds to valign="top", pretty sure that'll work.


  • Closed Accounts Posts: 20 spaniel


    Perfect I can't believe this didn't occur to me, thanks a million!!!


  • Registered Users, Registered Users 2 Posts: 2,793 ✭✭✭John_Mc


    spaniel wrote: »
    Perfect I can't believe this didn't occur to me, thanks a million!!!

    No problem, glad it worked :)


  • Advertisement
Advertisement