Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Web Design content is not adjusting to the center of the screen when adjusted?
Old 09-10-2009, 07:26 PM Web Design content is not adjusting to the center of the screen when adjusted?
DesignZone's Avatar
Novice Talker

Posts: 10
Name: Prevose
Trades: 0
In designing my web page I'm finding that when I review my layout in a web browser, My content is not automatically adjusting to the center of the screen verses being flushed left as the browser is being moved.

Is there a code or a way to layout my design so that when the browser is resized or adjusted to the screen size that the content will adjust along with the browser and stay centered? I using Dreamweaver and I used a div tag and incorporated my content within it for this certain section and position.

Your assistance is appreciated
DesignZone is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-10-2009, 07:33 PM Re: Web Design content is not adjusting to the center of the screen when adjusted?
Novice Talker

Posts: 14
Name: Tejaswini Deshpande
Trades: 0
You could try giving the below margins to the div in the css
margin: 0 auto;
__________________
Internet Techies

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
tejaswini is offline
Reply With Quote
View Public Profile
 
Old 09-14-2009, 03:27 PM Re: Web Design content is not adjusting to the center of the screen when adjusted?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
In addition to the margin: 0 auto;, you must also be sure your main "wrapper" div has a width set, otherwise the margin:0 auto; won't work.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 09-15-2009, 08:57 PM Re: Web Design content is not adjusting to the center of the screen when adjusted?
Average Talker

Posts: 29
Trades: 0
Just to put both posts together for you:

HTML Code:
#wrapper { width: 1024px; margin 0px auto 0px auto; }
__________________

Please login or register to view this content. Registration is FREE

Great Web Hosting just $9/mo. Includes free domain and renewals. Free 7 day trial.
bunchjesse is offline
Reply With Quote
View Public Profile Visit bunchjesse's homepage!
 
Reply     « Reply to Web Design content is not adjusting to the center of the screen when adjusted?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.65488 seconds with 12 queries