Help with CSS style sheeets.

  • Poly
  • Guru
  • Guru
  • User avatar
  • Posts: 1091
  • Loc: Same place you left me.

Post 3+ Months Ago

I have my entire page designed and coded. I need somebody to help me get the page so it is centered on in the browser, and so i get a black background around the page. I can send the files to you if you need them. Rite now the page is setup at 900px by 700px. I would like that to be centered. Thx for your help.

Poly

P.S. I think this would be a CSS style sheet. Or am i rong? Thx.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Vladdrac
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2136
  • Loc: Louisville, Ky

Post 3+ Months Ago

try
Code: [ Select ]
#container{
  width:700px;
  margin-left:auto;
  margin-right:auto;
  position:relative;
}
  1. #container{
  2.   width:700px;
  3.   margin-left:auto;
  4.   margin-right:auto;
  5.   position:relative;
  6. }


and put all of your page within that div

check out rtm's site for more info on this http://www.caffeinefuelled.net/layouts/ ... tered2.php
  • s15199d
  • Expert
  • Expert
  • User avatar
  • Posts: 524
  • Loc: NC, USA

Post 3+ Months Ago

just a question. but what is your end user gonna see if they have an 800x600 resolution? I'm guessing they won't be big fans...
  • Poly
  • Guru
  • Guru
  • User avatar
  • Posts: 1091
  • Loc: Same place you left me.

Post 3+ Months Ago

they probably wont, but im hoping everybody will be viewing in 1024x768 or higher cuz its for a gaming website. Ill also state on the website that it is best viewed in 1024x768.
  • Vladdrac
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2136
  • Loc: Louisville, Ky

Post 3+ Months Ago

youll be suprised how many people use 800x600. But I would imagine the majority will be using 1024 and above. It is not going to look good at all on 800 especially if it is centered
  • Poly
  • Guru
  • Guru
  • User avatar
  • Posts: 1091
  • Loc: Same place you left me.

Post 3+ Months Ago

ok what would you suggest then to make it fill our the entire page on what every resolution your using. if u need them i can send the files i have for the site.
  • Vladdrac
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2136
  • Loc: Louisville, Ky

Post 3+ Months Ago

I would at least have it fill about 750 px width, that way it will virtually fill the width of 800 resolution. and everyone else it will be smaller and centered. Most of the sites I see do this. You could stretch it in a table, but I wouldn't recommend that.
  • Poly
  • Guru
  • Guru
  • User avatar
  • Posts: 1091
  • Loc: Same place you left me.

Post 3+ Months Ago

im looking for a way to stretch it.

the site isnt done yet, but you can see what i have here http://members.cox.net/kmartcop

if you could tell me how to do this it would be great. i would like to stretch it or center it and put a black background around everything so it wont show any white. If you could help with that it would be great. thx ploy
  • cjxxi
  • Expert
  • Expert
  • cjxxi
  • Posts: 566
  • Loc: Fort Worth, TX

Post 3+ Months Ago

8) May be i can help , send me the code and source files :wink:











------
  • Vladdrac
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2136
  • Loc: Louisville, Ky

Post 3+ Months Ago

Code: [ Select ]
body{
background-color:black;
}
  1. body{
  2. background-color:black;
  3. }
  • Mas Sehguh
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1853

Post 3+ Months Ago

aoeu
  • Poly
  • Guru
  • Guru
  • User avatar
  • Posts: 1091
  • Loc: Same place you left me.

Post 3+ Months Ago

arite thx guys, can i delete a forum, cuz i have had help solving both of these problems, this and my motion button problems, so can i lock them or delete the somehow?

thx poly

Post Information

  • Total Posts in this topic: 12 posts
  • Users browsing this forum: No registered users and 54 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.