basicxman Posted February 6, 2008 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 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 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
Archived
This topic is now archived and is closed to further replies.