Log In · Register

 
Centering Header Image
sheertalentx
post Apr 13 2007, 03:01 PM
Post #1


Yes You Can Can Can
****

Group: Member
Posts: 103
Joined: Dec 2006
Member No: 488,190



How can I do it and have it work in all resolutions and browsers? Thanks!
 
 
Start new topic
Replies (1 - 2)
freeflow
post Apr 13 2007, 03:39 PM
Post #2


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



Use a regular div code?
CODE
.divname{
position: absolute;
left: #px;
top: #px;
z-index: #;}


or
CODE
.divname{
position: absolute;
left: 50%;
margin-left: #px;
top:0%;
margin-top: #px;
}


(they need style tags or if you have a .css file you can just stick it in there) and
CODE
<div class="divname">
<img src="urltoimage">
</div>
 
femmefutile
post Apr 14 2007, 07:40 PM
Post #3


Senior Member
***

Group: Member
Posts: 50
Joined: Sep 2006
Member No: 461,376



I center with the same css toyo loco posted, except mine has a small difference.

CODE
#Image {
left: 0px;
POSITION: absolute;
TOP: 0px;
}


^in the css, with the zeros in

CODE
<div id="image">
<center><img src="image url"></center></div>


^in the body. _smile.gif
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: