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

placement of background graphic using css

Status
Not open for further replies.

kathyc20

Programmer
Mar 7, 2001
96
CA
I have a graphic background that is
white with a very large "A" in the middle
of it.

Can someone please tell me how to center this
"A" background so that no matter what resolution
you are viewing it in, the "A" is centered.

Any help would be appreciated.

Thanks.
 
I'm not sure if there is a way to do it as a background, but perhaps it could be done within a DIV tag with position=absolute. That way, stuff could be written on top of it (like a background) and you would have greater control over the positioning of the image. Kevin
slanek@ssd.fsi.com
 
Or you could try percentages 50%,50% -or center,center - according to my css2 docs, this is valid?
 
body {
background-image: url("[red]yourimage[/red]");
background-repeat: no-repeat;
background-position: center center;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top