Jump to content

A newbie needing help please!!


basicxman

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...