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 09-21-2004, 03:11 PM   PM User | #1
jewishj
New Coder

 
Join Date: Sep 2002
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
jewishj is an unknown quantity at this point
ie: mac on os x problem

I am trying to use the following div...

Code:
<div class="menuHeader">Services</div>
...with the following css class...

Code:
div.menuHeader{
	background-image: url('../images/menuHeader.gif');
	background-repeat: no-repeat;
	width: 200px;
	height: 45px;
	font-family: verdana, helvetica, arial, sans-serif;
	font-size: 11pt;
	font-weight: bold;
	color: #92add9;
	text-align: left;
	padding-top: 25px;
	margin: 0px, 0px, 20px, 0px;
}
...but for whatever reason, ie: mac 5.2 refuses to display it. This also occurs in "firefox" on mac (not sure what version - a friend told me about that one). What can I do to fix this problem?

Thanks
jewishj is offline   Reply With Quote
Old 09-21-2004, 04:53 PM   PM User | #2
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
To debug this I'd recommend you remove the CSS rules one at a time from the declaration until the div shows. Then you can ask us why that particular rule would cause a problem.
__________________
Check out the Forum Search. It's the short path to getting great results from this forum.
Roy Sinclair is offline   Reply With Quote
Old 09-21-2004, 05:04 PM   PM User | #3
jewishj
New Coder

 
Join Date: Sep 2002
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
jewishj is an unknown quantity at this point
sorry... my question was misleading..

the div is displaying.. it just doesn't display the background. The content put inside the div tags (in the code above "services") is displayed correctly.
jewishj is offline   Reply With Quote
Old 09-21-2004, 06:13 PM   PM User | #4
bradyj
Senior Coder

 
Join Date: Apr 2003
Location: San Francisco, CA
Posts: 2,469
Thanks: 0
Thanked 0 Times in 0 Posts
bradyj is an unknown quantity at this point
You might want to drop the quotes in the attribute, just:
Code:
background-image: url(../blah/blah.jpg);
there may be some other type of interferance, so we'd have to see the full code if this doesn't work. So you know, firefox for mac works like the PC version, Mac IE was good for it's time, but is now lackluster -- I would say over 90% of us mac users are on OS X, and 99% of us would rather use Safari than Mac IE -- and, if anything, we have more than one browser. Don't code for Mac IE, it'll give you hell and ignore it -- those users still on it are far used to seeing webpages go weird, and they all know it's because the product was discontinued. That being said, I don't even see the icon in my Dock
__________________
// Art is what you can get away with. <-- Andy Warhol
...:.:::: bradyjfrey.com : htmldog : ::::.:...
bradyj is offline   Reply With Quote
Old 09-21-2004, 11:46 PM   PM User | #5
jewishj
New Coder

 
Join Date: Sep 2002
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
jewishj is an unknown quantity at this point
thanks

That fixed the problem
jewishj 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 06:45 PM.


Advertisement
Log in to turn off these ads.