User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 402,509 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,807 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 641 | Replies: 5
Reply
Join Date: Nov 2006
Posts: 22
Reputation: lochii is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
lochii lochii is offline Offline
Newbie Poster

CSS alignment

  #1  
Feb 24th, 2008
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...

[IMG]http://i5.photobucket.com/albums/y161/lochii/websiteimg.gif[/IMG]
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2008
Posts: 91
Reputation: plgriffith is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 5
plgriffith plgriffith is offline Offline
Junior Poster in Training

Re: CSS alignment

  #2  
Feb 24th, 2008
I copied that into my browser and just got a blank screen.
Reply With Quote  
Join Date: Nov 2006
Posts: 22
Reputation: lochii is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
lochii lochii is offline Offline
Newbie Poster

Re: CSS alignment

  #3  
Feb 25th, 2008
sorry dont know what happened the last screenshot, below is the correct one...

[IMG]http://i5.photobucket.com/albums/y161/lochii/gowleft.gif[/IMG]
Reply With Quote  
Join Date: Jan 2008
Location: Bangalore, India
Posts: 336
Reputation: DangerDev is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 32
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Whiz

Re: CSS alignment

  #4  
Feb 25th, 2008
use div container and set css text-align property of it.
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
~Mitch Ratcliffe
Reply With Quote  
Join Date: Nov 2006
Posts: 22
Reputation: lochii is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
lochii lochii is offline Offline
Newbie Poster

Re: CSS alignment

  #5  
Feb 25th, 2008
thanks danger i'll look into that container tag, still gettin to gips with CSS ^^
Reply With Quote  
Join Date: Jun 2004
Location: Hemet, CA
Posts: 427
Reputation: FC Jamison is on a distinguished road 
Rep Power: 5
Solved Threads: 17
Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Solution Re: CSS alignment

  #6  
Feb 26th, 2008
To center an image (or other block object) you would use something like:

.centered {
    display: block;
    margin-left: auto;
    margin-right: auto 
}

<IMG class="centered" src="..." alt="..." />
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 6:01 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC