Margo
06-23-2004, 07:29 PM
Okay, I've seen so many sites with this type of layout, and I'm wondering if it's done with CSS. It doesn't look like they're using frames.
http://www.dakota-fanning.org/
I noticed all the pages are .php, is that a program? How'd they get the blank space on either side of the site?
I'm just really new at this; I only know how to make frames. Lately every site I go to, I try to figure out how to make the layout.
Thanks.
bourdelson
06-23-2004, 07:50 PM
It appears that, that particular layout is done with divs and has a sliced image for the navigation. The reason for the .php at the end of each page is that the owner of the Web site has used PHP includes.
The blank space on the left side is done using CSS...
body {
left-margin: #px;
}
http://www.lissaexplains.com/html6.shtml#php - info on PHP includes
http://www.lissaexplains.com/html7.shtml - info on div layers
Calidris
06-23-2004, 11:15 PM
Lately every site I go to, I try to figure out how to make the layout.sounds like a good plan to me.
The link wasn't working when I tried it just now but generally there are two main ways of putting spacing at the sides of the content.
1) Give the body element left and right margins in CSS (e.g. 50px margin on the left).
2) Put all the content in a <div>, give that <div> a fixed width, and then centralise it.
Obviously there's a few more methods, but they're the major two that are used a lot.
PS - There's also a lot more to PHP than just includes, it can do all kinds of things :)
Combat Babe
06-23-2004, 11:40 PM
Lately every site I go to, I try to figure out how to make the layout.
I thinks that's a good way to learn. It's how I'm learning alot now. Even though most of what I know now came from this website, some of it I have to see at work to understand. It can also help if you view the source code and try to figure out what made something the way it is, that's mostly what I do.
Margo
06-24-2004, 01:33 AM
Thank you for the info guys.