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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE's CSS tags problem

Status
Not open for further replies.

draigGoch

Programmer
Joined
Feb 10, 2005
Messages
166
Location
GB
I have a css which has the following:

banner{
background-image: url(blue/banner.jpg);
background-repeat: no-repeat;
background-position: top center;
color: Black;
font-size:50px;
font-weight:bold;
background-color: #99ccff;
padding-top:8px;
padding-right: 300px; padding-left: 200px;
padding-bottom: 1px;
border-top: 5px ridge #4C90BF;
}

when I use the tags <banner> it works in Firefox, but not in IE. Any suggestions?

A computer always does what you tell it to, but rarely does what you want it to.....
 
I suggest you stop using <banner> and find a more supported tag. If you do some googling you will find many many sites discussing the lack of support of this tag.

Until this thread I had never even heard of it.

Cheers,
Jeff

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

What is Javascript? faq216-6094
 
I would consider using a DIV element with a CSS position of "fixed". For IE, you could use an expression to keep the banner positioned.

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
I'm new to CSS so not sure how to use the Div thing, but I managed to pull it off using classes (i think), using #header, then using this as an id to an element in the html.

Thanks

A computer always does what you tell it to, but rarely does what you want it to.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top