3 replies [Last post]
Meatballsub
Offline
Regular
Last seen: 13 years 44 weeks ago
Joined: 2006-10-23
Posts: 14
Points: 0

Hi guys,

I seem to be running into a problem I cannot figure out. I had body text set up so its max width was 702 pixels, but now it seems to ignore that and just wrap around the width of the entire screen. Any help would be appreciated.

Blah

a:link {color: #ffffff }
a:active {color: #ffffff }
a:visited {color: #ffffff }
a:hover {color: #c4cdd2 }
p {color: #c4cdd2 }
h2 {color: #c4cdd2 }

body
{
background-image: url(http://blah.com/bg.gif) ;
background-repeat: repeat-y;
background-attachment: fixed;
background-position: center;
padding:0;
margin-left: auto;
margin-right: auto;
margin-top: 0px;
font-family: Verdana;
text-align:center;
}

body {background-color: #c4cdd2}


.img {
padding: 0px;
margin-left: auto;
margin-right: auto;
display:block
vertical-align:bottom
overflow:hidden
}

.Content {
padding: 5px 0px 5px 0px;
width:702px;
margin-left: auto;
margin-right: auto;
margin-top: 0px;
margin-bottom: 0px;
text-align: center;
display:block;
}

h2 {
margin-left:auto;
margin-right:auto;
margin-top: 15px;
margin-bottom;0px;
padding: 0px;
text-align:center;
}

p {
margin-left: 1cm;
margin-right: 1cm;
margin-bottom: 0px;
margin-top: 15px;
padding: 0px;
text-align:left;
}

blah blah blah - this is the text that ignores width

Solution Graphics

<% INCLUDE_VAR($CUSTOM_FOOTER) %>

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 7 years 38 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Um, there's no content on

Um, there's no content on the page. :? Also, you don't need to open a new

for every different rule; just have one for the whole lot.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

wolfcry911
wolfcry911's picture
Offline
Guru
MA, USA
Last seen: 8 years 18 weeks ago
MA, USA
Timezone: GMT-5
Joined: 2004-09-01
Posts: 3224
Points: 237

css is case specific. You

css is case specific. You have .Content in the styles and .content in the html

Meatballsub
Offline
Regular
Last seen: 13 years 44 weeks ago
Joined: 2006-10-23
Posts: 14
Points: 0

Case sensitive part is what

Case sensitive part is what screwed me up. Thanks so much!

I also fixed my stylesheet so there is only one tag.