The link is collegefootballrankings.us.
For some reason the background for "USA Today Coaches' Poll" is stretching all the way to the top. Any idea why the background works fine for the "AP Top 25" poll but not the other?
Any help is appreciated.
| SitePoint Sponsor |

The link is collegefootballrankings.us.
For some reason the background for "USA Today Coaches' Poll" is stretching all the way to the top. Any idea why the background works fine for the "AP Top 25" poll but not the other?
Any help is appreciated.


It's not really clear what you are referring to. Could you be a bit more specific, and maybe show the code that you think is relevant? What is the "background for USA Today Coaches' Poll"?

Hello,
If take a look at collegefootballrankings.us and scroll down you will see the background behind the text "USA Today Coaches' Poll" is stretched to the top. It looks fine for the "AP Top 25" background.
Here is the CSS:
.poll {
width: 300px;
background: #ffcd7f;
padding: 5px 10px 5px 10px;
-moz-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
font-weight: bold;
font-size: 18pt;
text-align: center;
margin: 15px 0 15px 93px;
}





Shouldn't this
need to beCode CSS:background:none repeat scroll 0 0 #FFCD7F;
Code CSS:background:none no-repeat scroll 0 0 #FFCD7F;
Hi,
You have a float (#others) above that .poll div.
Add clear:both to .poll so the background does not slide up under the float.
If you need space between them then put a bottom margin on the float (#others)
Ray H.- css-lab.com
W3C Specs - CSS 2.1 | CSS current work | Properties Index

Rayzur,
Thank you so much. I really appreciate your help.
Andy
Bookmarks