943,628 Members | Top Members by Rank

Ad:
Feb 24th, 2008
0

CSS alignment

Expand Post »
How can i get everything in my site aligned? i used to use tables years ago and use the <CENTER> tag dont work with CSS below is a screenshot of how it looks at the minute...

http://i5.photobucket.com/albums/y16...websiteimg.gif
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
lochii is offline Offline
33 posts
since Nov 2006
Feb 24th, 2008
0

Re: CSS alignment

I copied that into my browser and just got a blank screen.
Reputation Points: 10
Solved Threads: 6
Junior Poster
plgriffith is offline Offline
100 posts
since Jan 2008
Feb 25th, 2008
0

Re: CSS alignment

sorry dont know what happened the last screenshot, below is the correct one...

http://i5.photobucket.com/albums/y16...ii/gowleft.gif
Reputation Points: 10
Solved Threads: 0
Light Poster
lochii is offline Offline
33 posts
since Nov 2006
Feb 25th, 2008
0

Re: CSS alignment

use div container and set css text-align property of it.
Reputation Points: 165
Solved Threads: 59
Posting Pro in Training
DangerDev is offline Offline
485 posts
since Jan 2008
Feb 25th, 2008
0

Re: CSS alignment

thanks danger i'll look into that container tag, still gettin to gips with CSS ^^
Reputation Points: 10
Solved Threads: 0
Light Poster
lochii is offline Offline
33 posts
since Nov 2006
Feb 26th, 2008
0

Re: CSS alignment

To center an image (or other block object) you would use something like:

HTML and CSS Syntax (Toggle Plain Text)
  1. .centered {
  2. display: block;
  3. margin-left: auto;
  4. margin-right: auto
  5. }

HTML and CSS Syntax (Toggle Plain Text)
  1. <IMG class="centered" src="..." alt="..." />
Team Colleague
Reputation Points: 92
Solved Threads: 21
Posting Pro in Training
FC Jamison is offline Offline
436 posts
since Jun 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: CSS Negative Margin
Next Thread in HTML and CSS Forum Timeline: Formatting Q & A as a block





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC