reekdog
07-21-2008, 07:56 PM
Hey,
I have recently downloaded the Firefox web developer tool too see how webpages site layout has been created. Most of the webpages i view the block level elements of have so many. Some i would think could be combined into one block, for instance a line of text for the title is one block element, then the picture underneath is another block and text to the right of the image is another block.
It's made me wonder if how i'm practising to put some webpages together is the correct way. I'm also wondering because when i create floating div blocks with margins, it displays completely differently in IE and FireFox.
Currently all the webpages i'm prctising in re-creating, i use div blocks. For instance;
.wrapper {
width: 900px;
min-height: 500px;
background-color: #F0F0F0;
}
.leftbox {
width: 280px;
height: 400px;
float: left;
margin: 10px;
background-color: white;
}
.centerbox {
width: 280px;
height: 400px;
float: left;
margin: 10px;
background-color: white;
}
.rightbox{
width: 280px;
height: 400px;
float: right;
margin-top: 30px;
background-color: white;
}
When i look at other webpages source code, most if it doesn't make sense to me at the moment, but a lot of them also don't seem to use width and height attrubutes for every block element that is outlined using the firefox web developer tool.
I was wondering if anyone knows of a good website that explains how best to create webpages using CSS that covers this issue? Or if anyone has input that would be appreciated.
Thanks :)
I have recently downloaded the Firefox web developer tool too see how webpages site layout has been created. Most of the webpages i view the block level elements of have so many. Some i would think could be combined into one block, for instance a line of text for the title is one block element, then the picture underneath is another block and text to the right of the image is another block.
It's made me wonder if how i'm practising to put some webpages together is the correct way. I'm also wondering because when i create floating div blocks with margins, it displays completely differently in IE and FireFox.
Currently all the webpages i'm prctising in re-creating, i use div blocks. For instance;
.wrapper {
width: 900px;
min-height: 500px;
background-color: #F0F0F0;
}
.leftbox {
width: 280px;
height: 400px;
float: left;
margin: 10px;
background-color: white;
}
.centerbox {
width: 280px;
height: 400px;
float: left;
margin: 10px;
background-color: white;
}
.rightbox{
width: 280px;
height: 400px;
float: right;
margin-top: 30px;
background-color: white;
}
When i look at other webpages source code, most if it doesn't make sense to me at the moment, but a lot of them also don't seem to use width and height attrubutes for every block element that is outlined using the firefox web developer tool.
I was wondering if anyone knows of a good website that explains how best to create webpages using CSS that covers this issue? Or if anyone has input that would be appreciated.
Thanks :)