Jump to content

A newbie needing help please!!


basicxman
 Share

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...