FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

div -addressing doesn't work in IE?

 


rein
Hey people,
The piece of css works fine in firefox, but not in IE. Does anyone know why?
I had to use the 'div' selector because the divs are generated by a content management system, and don't have a class or an ID applied to them.

Code:
.blog div{
margin: 0 0 20px 0;
padding: 5px;
background: #fff url('templates/rock2007/images/bericht.jpg')top left no-repeat;
}


Oh, the page where i use the code on (incase you want a wee look of your own) is this one.
Mosquito.Tyler
Try This, add a comma Smile
Code:
.blog, div{
margin: 0 0 20px 0;
padding: 5px;
background: #fff url('templates/rock2007/images/bericht.jpg')top left no-repeat;
}
mothmann
i looked at your page sourc eand i'm confused ? blog is a class id of a table but i saw no div's inside of it
rein
@Mosquito.Tyler: The comma thing doesn't work. I'm not trying to group both the blog class and the div tags. The divs are children of the table with the blog class assigned to.

@mothman: I assure you that they are there. Every div has two tables with the class "contentpaneopen" assigned to them.
Mosquito.Tyler
rein wrote:
@Mosquito.Tyler: The comma thing doesn't work. I'm not trying to group both the blog class and the div tags. The divs are children of the table with the blog class assigned to.


Perhaps you need to do define the absolute target of the class...like...

Code:

table.blog div{
margin: 0 0 20px 0;
padding: 5px;
background: #fff url('templates/rock2007/images/bericht.jpg')top left no-repeat;
}


Maybe.
rein
Tried the table.blog div {} approach, but with the same result as before. It works fine in Firefox, but IE6 shows no background image behind the div.

Incase you are looking at my code; every class in the #main div now has 'home' added to it. It's something i changed myself and i have modified the css to work, so don't point that out as a possible cause.

Thanks for the help so far guys.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.