Two Column Layout
Posted: Sat, 2008-10-11 15:13
I got a two column layout (menu and text area). It looks fine in the browser, but the preview in dreamweaver pushes #textArea below the #menu instead of pushing it to the right.
Is this giving me a preview of worst case scenario?
Also, how do I structure this better. I thought I would be able to set the margin-left property of #textArea to 15px but this doesn't seem to do anything. Do the floats somehow interfere with this?
Ultimately this is what I'm trying to achieve:
Left column width of 133px
Right column width of 640px
Spacing of 10px between them
here's the site Fornoreason.com/reboot
Thanks for any help you can provide,
Joe


Guru
Posts: 2613
Joined: 2005-12-14
Location: Victoria British Columbia
Ignore DW's rendering. It
Posted: Sat, 2008-10-11 16:32
Ignore DW's rendering. It is not a browser and it is lousy at rendering pages. If the code works in all the browsers you have to hand, including IE6, you are good to go.
DW is a fine text editor. Never use it's "design" mode.
I am not now, nor was I ever, any kind of "dude".
Ed Seedhouse
Leader
Posts: 753
Joined: 2007-06-10
Location: Adelaide, Oz
First, validate your HTML -
Posted: Sat, 2008-10-11 22:32
First, validate your HTML - http://validator.w3.org/
26 errors at the moment
Then validate your CSS - http://jigsaw.w3.org/css-validator/
It can't find the menu style sheet
If fixing the errors doesn't help the issue, valid code will at least help folks find a solution.
Mods and gurus – THANK YOU!
For your time, knowledge and experience so willingly and generously given.
Please come back tomorrow and sort us all out again
Regular
Posts: 19
Joined: 2008-04-14
Hey Smee, A lot of the
Posted: Sun, 2008-10-12 14:23
Hey Smee,
A lot of the errors look like they have to do with the menu. I used php includes so they look like this:
<div class="menu" style="margin-bottom:10px;">
<?php include("menus/siteMenu.php"); ?>
</div>
<div class="menu">
<?php include("menus/bookMenu.php"); ?>
</div>
Which brings me to another question: is this a problem cause it looks like it generated a lot of errors unless I just did it wrong.
Thanks,
Joe
Guru
Posts: 2613
Joined: 2005-12-14
Location: Victoria British Columbia
JoeLongstreet wrote:A lot of
Posted: Sun, 2008-10-12 17:43
That's not an excuse. No browser sees your php, they only see the generated html, and it is your business to make sure that the php generates valid html, or accept the consequences that flow from invalid html, namely basically throwing the standards out the window.
If you throw the standards out the window with invalid html, you have no basis for a complaint about how any browser shows it. There are no standards for invalid html.
I am not now, nor was I ever, any kind of "dude".
Ed Seedhouse
Leader
Posts: 753
Joined: 2007-06-10
Location: Adelaide, Oz
Quote:A lot of the errors
Posted: Mon, 2008-10-13 00:17
Eerm...yes and no. As Ed said you need valid HTML.
(when rendered - go to your page on the web and view source)
I know we stress you must have a Doctype but one will do not three!
Hint: The page that is being included does not need another doctype, head etc. if it is just a chunk of html for the menu.
Mods and gurus – THANK YOU!
For your time, knowledge and experience so willingly and generously given.
Please come back tomorrow and sort us all out again