Forum Moderators: open
So I guess my question is: Is there a way that I can take my existing page (3 frames, 4 tables and 2 images) and "convert" it to a fluid page? Or do I have to start from scratch?
For example:
<body>
<div id="one">
...
<div id="two">
...
</div>
</div>
</body>
with CSS
#one {width:80%;}
#two {width:70%;}
Div "one" will be 80% the width of the <body> which in most cases will be the width of the browser screen. Div "two" will be 70% the witdh of div "one", since it is contained within div "one".
Now if you're talking about font sizes, 100% will be the size of the default font of the browser. That will vary depending on each individual user's browser settings.
Or do I have to start from scratch?
Pretty much. It's a pain in the behind but you could do a lot worse than converting. However there are plenty of very successful sites that do not use fluid layout and do very well. Maybe you could just resize your site for the lowest common denominator? 750px seems to be safe enough.
Are you using a WYSIWYG editor? Templates? Dynamic pages? And how large is your site? all these this might influence you decision to switch.
Are you using a WYSIWYG editor? Templates? Dynamic pages? And how large is your site? all these this might influence you decision to switch.
I'm quite new at all of this. So I don't know what a WYSIWYG editor is. Templates I am not using, probably should be....
I am using Dreamweaver and what I have is a 3 Frame (which I'm not overly crazy about) setup. When you click in the main frame, on a date say, it launches something in the top right frame, which should be a template but since I don't really know what I'm doing, I just made 15 pages from scratch, then that loads a few links into that table in that frame. AFter you click on one of those links that brings up something in a similar sized table below that frame in the 3rd frame.
So I'm not sure if that is what you mean by dymaic or not...
%: usually of the parent element, starting with the page and working down to paragraphs and tables and whatever. photon's example looks very good. If you just want to try sticking numbers in and understand it that way, try starting with 100% and then keep reducing it until you know what's going on.
pixels: fixed width no matter what else happens. Good for images or menus, probably not so good for anything else.
Depending on what DW has done, it should be reasonably straightforward to change the code over to a fluid layout.
Actually, on a related note: I've always wondered why max-width can't be applied to frames... You can set <frameset cols="25%,*", or specify it in pizels, but applying this CSS doesn't seem to work (even in the vast majority of modern browsers, that support it no problem for everything else). Is this just a spec oversight, or is there any reasoning behind it?