Web Design Forum: DW - Make content appear in middle of page - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

DW - Make content appear in middle of page Help with dreamweaver layout Rate Topic: -----

#1 User is offline   Malcolm 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 24-March 11
  • Reputation: 0
  • Gender:Male
  • Experience:Beginner
  • Area of Expertise:Web Developer

Posted 25 March 2011 - 12:05 PM

Hello and thanks for your time in reading this..

I am using the latest Dreamweaver software and have made my website for the common 1024x768 user.
Although, my resolution is 1900x1200 and all the content therefore appears in the top right of the webpage.
How do I get all the content to always appear in the horizontal middle of the page

Thanks,
Malcolm
0

#2 User is offline   ChristopherDarling 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 343
  • Joined: 27-November 08
  • Reputation: 7
  • Gender:Male
  • Location:Bristol - UK
  • Experience:Advanced
  • Area of Expertise:Designer/Coder

Posted 25 March 2011 - 01:02 PM

put all your body html inside a <div id="wrapper"></div>

then add the following CSS

#wrapper { width:960px; margin:0 auto; }

0

#3 User is offline   Malcolm 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 24-March 11
  • Reputation: 0
  • Gender:Male
  • Experience:Beginner
  • Area of Expertise:Web Developer

Posted 28 March 2011 - 08:00 PM

View PostChristopherDarling, on 25 March 2011 - 01:02 PM, said:


then add the following CSS

#wrapper { width:960px; margin:0 auto; }



Thanks, erm.. how do you add the CSS code in
0

#4 User is offline   web-itec 

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 533
  • Joined: 23-March 11
  • Reputation: 53
  • Gender:Male
  • Location:United Kingdom
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 30 March 2011 - 07:57 PM

View PostMalcolm, on 28 March 2011 - 08:00 PM, said:

Thanks, erm.. how do you add the CSS code in


you can do that by creating a css file and putting it in there and then linking the css into the head of your html file like below

<head>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>

or you could put the css straight into your html like

<head>
<style type="text/css">
#wrapper { width:960px; margin:0 auto; }
</style>
</head>

hope you get what im trying to say :p i find it hard to explain things sometimes and i end up talking on and on hah
0

#5 User is offline   Malcolm 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 24-March 11
  • Reputation: 0
  • Gender:Male
  • Experience:Beginner
  • Area of Expertise:Web Developer

Posted 31 March 2011 - 12:11 PM

Yes it worked! Thank you very much mate!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users