CSS Background width
-
Hello,
I’m using the default template to customize a new theme and rather than using only the standard template files ie. header, sidebar, footer, I added an additional template file I called “secondrow.php” because the design of the layout has a header stacked above the content, stacked above a second row of content which is stacked above another third row (I intend to use the sidebar.php for the third row of content) and then the footer.This new secondrow.php template file calls into the template perfectly and seems to be working fine. The problem is that I’m having problems with styling it. In the css file there is this bit of code:
#page { background-color: white; position: absolute; margin-left: -475px; left: 50%; width: 950px; }
This seems to affect the 1st row of content where the loop is. It is the property that the default theme already had in the style.css file just with my changes I used the css to center the main content to align with the header and changed some details of color.
In the secondrow.php I have a
<div id="secondrow">
this is as follows:#secondrow { background-color: #003c7a; background-image: url(images/bkg_tworow.jpg); background-repeat: repeat-x; height: 400px; }
The idea is to have this area be in contrast to the main content area by a repeated gradient image that spans from the left of the browser window to the right of it. The problem is that this repeated image seems to be inheriting some quality from the #page property and it is not going all the way across. I’m not very good with css yet so thus far I’m unable to see what could be causing it (despite hours of trying). Is there something I’m overlooking or perhaps a way to force the repeated background to go all the way across with some nifty css trick? If someone could help I’d be very grateful.
If I need to provide more information please let me know
Thank you!
- The topic ‘CSS Background width’ is closed to new replies.