Forum Moderators: not2easy
[edited by: alt131 at 2:58 am (utc) on May 17, 2011]
[edit reason] Thread Tidy [/edit]
<div id="content">
<p><img src="images/title.jpg" alt="sdfsadf" width="100%" /></p>
<img src="images/title.jpg" alt="sdfsadf" class="logo" /> #content img.logo {
display:block;
width: 900px;
height: 116px;
margin: 0 auto; /* would center it if that was required */
} <div id="header"><img..</div> This can be useful so you don't have to go back and add classes to the HTML, also if you then added a <p> of text or a <h1> element you could still uniquely target all elements inside the header. e.g. the img, without adding a class name could then be uniquely targeted in the CSS using #header img {properties} p {margin: 0;} however in this case you would also still need a class name on that one <p> or wrap the whole header in a div as suggested in order just to zero out that particular paragraph [edited by: alt131 at 2:51 am (utc) on May 17, 2011]
[edit reason] Side Scroll [/edit]
html, body {padding: 0; margin: 0, border: 0;}
body {
background: #fff url("http://www.example.com/images/basketball-flooring-baraboo.jpg") repeat 0 0;
font-family: "times new roman", serif;
font-size: 16px;
}
#wrapper {
width: 1075px;
margin: 0 auto; /* centers an item as long as it has a width */
}
#main {
float:left; /* floating this makes it contain floated children */
width: 100%; /* same width as wrapper */
background-color: #ffffff;
background-image: url(repeatingfauxcolumns.jpg);
background-repeat: repeat-y;
background-position: 10px 0;
}
[edited by: alt131 at 2:50 am (utc) on May 17, 2011]
[edit reason] Side Scroll [/edit]
html, body {padding: 0; margin: 0, border: 0;}
body {
background: #fff url(http://www.barabooboyshoops.org/images/basketball-flooring-baraboo.jpg) repeat 0 0;
font-family: "times new roman", serif;
font-size: 16px;
}
#wrapper {
width: 1095px;
margin: 0 auto; /* centers an item as long as it has a width */
}
#main {
float:left; /* floating this makes it contain floated children */
width: 100%; /* same width as wrapper */
background-color: #332A59;
background-image: url(http://www.barabooboyshoops.org/images/bb-bg.gif); /* THIS IMAGE NEEDS SAVING */
background-repeat: repeat-y;
background-position: -55px 0;
}
/* if you use padding or border on the sidebar or content divs it will make them wider*/
#sidebar {
float: left;;
width: 175px; /* actual width = 195px being 175width + 10px left + right padding */
padding: 0 10px;
background-color:#332A59;
color:#333;
}
#content
{
float: left;
width: 900px;
padding: 0;
background-color:#D9CA87;
color:#333;
}
#content img.logo {
display:block;
width: 900px;
height: 116px;
margin: 0 auto; /* would center it if that was required */
}
a:link {
color: #e46107;
text-decoration: none;
}
a:visited {
color: #e46107;
text-decoration: none;
}
a:hover {
text-decoration: none;
color: #FFFFFF;
}
a:active {
text-decoration: none;
}
.style1 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 16px;
color: #D9CA87;
}
.style2 {
font-size: large;
font-weight: bold;
}
.style3 {font-size: large}
[edited by: alt131 at 2:57 am (utc) on May 17, 2011]
[edit reason] Side Scroll [/edit]
[edited by: alt131 at 2:50 am (utc) on May 17, 2011]
[edit reason] Side Scroll [/edit]