Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-12-2007, 05:27 AM   PM User | #1
ChandlerMike
New to the CF scene

 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ChandlerMike is an unknown quantity at this point
Text appears behind background image in IE

Hey guys,

Very new to CSS, but I understand it...just have a tough time getting things to look right.

Anyways, the stylesheet here is a Wordpress theme I downloaded and it works great. All except the title of the page at the very top.

In Firefox, it appears just fine. In IE, it wont appear when you load the page, but if I scroll down and back up, it ends up appearing.

Here are the styles associated:

(I took out the "inherit" property below on the H3 A href but that didnt help - so I left it in here)


#top
{
color:#fff;
margin:0;
padding:0 0 0px 0;
background:url(img/top_head.jpg) repeat-x;
}


#top a:hover
{
text-decoration:none;
color:#999;
}
#top h3 {
font-size:2em;
font-weight:bold;
margin:0px;
padding:10px 0px 0px 15px;
}

#top h3 a{
background:inherit;
color:#cc0000;
text-decoration:none;
}

#top p {
font-size:1em;
font-weight:normal;
margin:0px;
padding:1px 5px 1px 20px;
color:#fff;

}



I appreciate any help you guys have.
ChandlerMike is offline   Reply With Quote
Old 07-12-2007, 05:43 AM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,292
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Umm yeah CSS is useless without HTML. Add position:relative; to the element that the image is in.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 07-12-2007, 06:18 AM   PM User | #3
ChandlerMike
New to the CF scene

 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ChandlerMike is an unknown quantity at this point
Quote:
Originally Posted by _Aerospace_Eng_ View Post
Umm yeah CSS is useless without HTML. Add position:relative; to the element that the image is in.

That did it. Can you explain to me why?

Were you saying my pasting the CSS was useless without pasting the HTML code? Sorry about that.
ChandlerMike is offline   Reply With Quote
Old 07-12-2007, 06:24 AM   PM User | #4
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,292
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
http://www.positioniseverything.net/.../peekaboo.html
Yes next time post your HTML and CSS or just give us a link to the page (which is better so we can actually see the problem).
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 07-12-2007, 06:45 AM   PM User | #5
ChandlerMike
New to the CF scene

 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ChandlerMike is an unknown quantity at this point
Okay, will do. I didn't think you could see the CSS because I couldn't when I did a page source.

Thanks for the link, I will try to learn this stuff a bit more

Appreciate the help.

Mike
ChandlerMike is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:39 AM.


Advertisement
Log in to turn off these ads.