Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Dreamweaver or HTML help pleaseeee!

    Hey people what's doin'?

    K I have a question concerning HTML/Dreamweaver...

    I'm trying to make a website (done it before but this is going to be my nicest one)... I have a photo that I 'mapped' to make into a menu (linked)..
    I need/want to put a table to the right of it, but I don't want the menu to be part of the table, or in a table at all whatsoever.

    How would I go about doing this? Someone told me I must put a table within a table, however this results in having to include the menu in the table, which I would prefer to avoid.

    Thank you,

  • #2
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    Code:
    <head>
    <style>
    div.table_holder
    {
    float:right;
    }
    div.menu_holder
    {
    float:left;
    }
    </style>
    </head>
    <body>
    <div class="table_holder">
    TABLE GOES HERE
    </div>
    <div class="menu_holder">
    MENU GOES HERE
    </div>
    </body>
    Last edited by whizard; 12-12-2006 at 11:56 PM. Reason: typo
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION

  • #3
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Hi blahman64,

    I know you're in a rush and all, but you're required to read the Posting Guidelines before posting a thread. Edit your title, please.

  • #4
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks, but it doesn't work.

    all that does is make me place the table above the menu.

  • #5
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    try wrapping them both in a div:

    <div class="wrapper">
    <div class="table_holder">
    </div>
    <div class="menu_holder">
    </div>
    </div>
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dimensions

    You probably haven't accounted for the room needed for these floated sections to sit next to eachother.
    To get this to work you'll need to think about giving the various sections fitting dimensions, at least widths: floating an element makes it "shrink wrap" its contents unless a specific width is supplied.
    So: think about whether you want to layout to have a fixed width, or have it adapt to the available window width; also, does the menu need a fixed width (considering it's based on a sliced-n-diced image I would expect so) or not?

    By the way: how proficient are you in HTML and CSS?
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

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