View Full Version : My first VALID XHTML/DIV/CSS Layout ^_^
Heh :) My first valid XHTML/DIV/CSS layout:
http://www.habbofanclub.co.uk/layout/
This works 100% in Firefox/Bon Echo Alpha
Not sure about IE, Opera, etc.
I know the layout is not centered, I dont know how to do this with divs (If anyone knows please say).
Mentor
27-04-2006, 07:50 PM
text-align :)
Encryptions!
27-04-2006, 07:54 PM
margin-left: auto;
margin-right: auto;
Put that in your container.
Ok both of them dident work ;( Its still not centered
Klaus5000
27-04-2006, 08:07 PM
Nice temp! :) 7/10.
Luckyrare
27-04-2006, 08:07 PM
<div align="center"></div>
Wrap them around the first and last div
Then add align="left" to the other divs
Sygon.
27-04-2006, 08:10 PM
<div align="center"></div>
Wrap them around the first and last div
Then add align="left" to the other divs
Why dont u just use the good old
<center></center> tags =] it validates i think.
Encryptions!
27-04-2006, 08:12 PM
Why dont u just use the good old
<center></center> tags =] it validates i think.
Seeing as <div align="center"></div> isn't valid on strict I highly doubt <center> will validate. Although he is using transitional therfore it might validate.
Sygon.
27-04-2006, 08:16 PM
Seeing as <div align="center"></div> isn't valid on strict I highly doubt <center> will validate. Although he is using transitional therfore it might validate.
well i have used center on many times, it validated try it yourself... then critiscise how ever u spell it.
Mentor
27-04-2006, 08:21 PM
Ok try this
body {
text-align: center; /*aligns ie */
}
then have the conatiner as somthing like this
#container {
margin: 0 auto; /*aligns good browser */
text-align: left; /*just makes sure text goes where it should */
width: 600px; /*good to change */
}
Encryptions!
27-04-2006, 08:38 PM
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.dan-williamson.co.uk%2Frubbish%2Ftest.html
It isn't valid Sygon...
Sygon.
28-04-2006, 02:32 PM
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.dan-williamson.co.uk%2Frubbish%2Ftest.html
It isn't valid Sygon...
Not strict.... :rolleyes:
Encryptions!
28-04-2006, 02:45 PM
Well if you read my post properly then you will see that I was talking about strict. Then again your skills to read are not the best are they?
Sygon.
28-04-2006, 02:50 PM
Well if you read my post properly then you will see that I was talking about strict. Then again your skills to read are not the best are they?
Says the person with the bad design skills, so dont go saying my skills are bad "/ look in the mirror, and i dont even look atmost of your posts because i can predict what they are
Hello.
bla
Mentor
28-04-2006, 06:00 PM
If anyone cairs to lack i already posted a valid soltion to centering if im not mistaken? including an IE hack since IE requres to suck more than the rest of the borwser oiut there
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.