Appledrop
Platinum Member
!FIXED!
hi, i have a slight problem with my Cascading Style Sheet learning!
I have this website:- http://www.carubansystems.com/stx
I want to position the purple image into the center of the page...
I CAN do it by changing this portion of code:-
#logo {
width:480px;
height:80px;
position:absolute;
top:0px;
}
to look like this :-
#logo {
width:480px;
height:80px;
position:absolute;
top:0px;
left:30%
}
BUT. this only centers it for my resolution of 1280x960.. if i switch to say 1024x768, it will not be centred, clearly...
Any suggestions? thanks!
i fixed it by changing it to :-
#logo {
width:480px;
height:80px;
position:relative;
top:-3.75%
}
and then by putting <div align="center" id="logo">IMG</div>
hehe!
hi, i have a slight problem with my Cascading Style Sheet learning!
I have this website:- http://www.carubansystems.com/stx
I want to position the purple image into the center of the page...
I CAN do it by changing this portion of code:-
#logo {
width:480px;
height:80px;
position:absolute;
top:0px;
}
to look like this :-
#logo {
width:480px;
height:80px;
position:absolute;
top:0px;
left:30%
}
BUT. this only centers it for my resolution of 1280x960.. if i switch to say 1024x768, it will not be centred, clearly...
Any suggestions? thanks!
i fixed it by changing it to :-
#logo {
width:480px;
height:80px;
position:relative;
top:-3.75%
}
and then by putting <div align="center" id="logo">IMG</div>
hehe!