Current location: Hot Scripts Forums » General Web Coding » CSS » CSS Only website problem...


CSS Only website problem...

Reply
  #1 (permalink)  
Old 06-14-05, 09:55 PM
Justin171985 Justin171985 is offline
Newbie Coder
 
Join Date: Feb 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
CSS Only website problem...

Hello,

I'm currently working on coverting my website into a tableless website using CSS only, and the main problem I have is, how do I get the entire layout to be centered in the page instead of being left-aligned?

Thanks,
Justin.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-15-05, 05:35 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
use margin
Code:
<div style="margin-left:20%; margin-right:20%; border: 1px dashed black;">Text</div>
this will give you 60% of the page in the center..
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 06-15-05, 12:27 PM
Justin171985 Justin171985 is offline
Newbie Coder
 
Join Date: Feb 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, Thanks.

Justin.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 06-15-05, 12:38 PM
jordie jordie is offline
Wannabe Coder
 
Join Date: Jun 2005
Posts: 179
Thanks: 0
Thanked 0 Times in 0 Posts
Did you want a fixed-width solution or that one work fine for you?
__________________
Jordie Bodlay
php, mysql, postgres
css, xhtml
graphics, design
email me: jb2386@hotmail.com for any programming needs.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 06-15-05, 03:41 PM
Justin171985 Justin171985 is offline
Newbie Coder
 
Join Date: Feb 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Hello,

I'm looking to make a fixed-width website of 650px centered.

Thanks,
Justin.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 06-15-05, 04:48 PM
Justin171985 Justin171985 is offline
Newbie Coder
 
Join Date: Feb 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
nevermind.. I figured it out I just made a container for the content

Thanks again,
Justin.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
website design problem :-( nick1 CSS 3 07-24-05 07:40 AM
Complete ringtone website with top features! rossy790 General Advertisements 6 06-29-05 09:06 AM
FS: Prozilla Memberships (Turnkey Sites) - $10-15 less than Retail! rockergrrl General Advertisements 0 08-11-04 01:05 AM
website design problem :-( nick1 HTML/XHTML/XML 1 06-30-04 01:31 PM
Creating Website Script Problem Dainbramaged05 PHP 4 06-30-04 01:29 PM


All times are GMT -5. The time now is 12:55 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.