how do u center a website with css?? I use text-align and it works wonder in IE, but as soon as I switched to Firefox, it turned left align. What am i doing wrong guys??
thx for answering
t.t
css and firefox help
Started by
_*Xsionic_*
, Sep 12 2004 01:25 PM
7 replies to this topic
#1 _*Xsionic_*
Posted 12 September 2004 - 01:25 PM
#2 _*Unreal_*
Posted 12 September 2004 - 02:45 PM
Hmm yeah, CSS doesnt work in Opera for me either.. transparent iframe work fine in IE but not in Opera
#3 _*sdesign_*
Posted 12 September 2004 - 04:51 PM
how do u center a website with css?? I use text-align and it works wonder in IE, but as soon as I switched to Firefox, it turned left align. What am i doing wrong guys??
thx for answering
Make sure you have your margin's set to auto, like the following example.
#stylesheet { text-align: center; margin: auto; width: 725px; height: auto }
I hope that helps
#4 _*Gio_*
Posted 12 September 2004 - 05:18 PM
Glad you are trying to make your website browser compatable.
#5 _*Unreal_*
Posted 13 September 2004 - 12:33 PM
is there any way for my problem? About the transparency
#6 _*sdesign_*
Posted 13 September 2004 - 01:40 PM
Not exactly sure what your trying to do but here is my best guess.
Using 2 divs like so....
html code:
css code:
Or you can just make a normal background using the body tag and place the iframe div over top.
Here is a jpg of my tests in opera.
Hope that helps.
SD
Using 2 divs like so....
html code:
<div id="content"> <div id="iframe"> </div> </div>
css code:
#content { background-image: url(../My%20Pictures/rustymetalthing.jpg); text-align: left; margin: 0px; padding: 0px; border: solid 1px #646464; width: 175px; height: 450px } #iframe { background-color: transparent; margin: 0px; padding: 0px; width: 175px; height: 450px; overflow: scroll }
Or you can just make a normal background using the body tag and place the iframe div over top.
Here is a jpg of my tests in opera.
Hope that helps.
SD
#7 _*Unreal_*
Posted 13 September 2004 - 02:51 PM
Thanks
#8 _*Xsionic_*
Posted 19 September 2004 - 10:18 PM
yah thx i was having trouble in school sorry
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users