basicxman Posted February 6, 2008 Report Share Posted February 6, 2008 OK, I am making my website valid CSS and valid XHTML, I used to use very old (now depricated) tags like <center></center> but now I'm getting angry!!!I need to know a few things, under XHTML Strict and CSS how do I: Make an image centered change the text in a link (anchor), font, no underline, color, align center, etc... get a div to center (I really really need this) thanks! Link to comment Share on other sites More sharing options...
Ingolme Posted February 7, 2008 Report Share Posted February 7, 2008 OK, I am making my website valid CSS and valid XHTML, I used to use very old (now depricated) tags like <center></center> but now I'm getting angry!!!I need to know a few things, under XHTML Strict and CSS how do I: Make an image centered change the text in a link (anchor), font, no underline, color, align center, etc... get a div to center (I really really need this) thanks! 1. <div style="text-align: center"><img src="" alt=""></div>2. Put this in the head of the document:<style type="text/css">a {text-decoration: none;color: red;}</style> To center it just put it within <div style="text-align: center"></div>3. To center a <div> inside another element, give it this style:<div style="margin: 0 auto;">Some text</div> Link to comment Share on other sites More sharing options...
basicxman Posted February 7, 2008 Author Report Share Posted February 7, 2008 thank you so much!!!! i got it to work Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now