Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Absolute positioning in CSS

Status
Not open for further replies.

alexanderdring

Technical User
Dec 27, 2002
36
FR
Hi everyone,

On my page, I have three columns and at the top left hand corner of each, I would like to superimpose a logo on a transparent background. For Safari, Firefox and Netscape, I have no problems sitting the logos in a div class with absolute positioning. When I go to IE, the page goes crazy and the logos seem to disappear from view. Does anyone have a crack for this very irritating problem?!

Thanks for any help anyone might have.

Al
 
Why not set these logos as background images on their main container? Then you can position them at 0,0 or use top,left

Code:
.myclass {
 background-image:url(path/to/image.gif);
 background-repeat:no-repeat;
 background-position:0 0;
}
Of course you can condense that into a single line if you like:
Code:
.myclass {
 background:url(path/to/image.gif) no-repeat 0 0;
}
Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top