Jump to content


Adjust CSS layout to screen/browser size


1 reply to this topic

#1 schnupi

    Young Padawan

  • Members
  • Pip
  • 5 posts

Posted 15 October 2006 - 06:11 PM

Hi

I am just about finishing my website for a college project. i thought it would be nice idea to try and do it all in CSS divs instead of tables, as everybody keeps telling me they are better.. so far so good, the only problem i have is that i have a big white space at the right of my page. the page was designed at 1024x768 and my screen is far bigger...
i used to be using tables which i could use to adjust the screensize, like make three columns put the design in the middle one and let the other 2 adjust to the screen..
were not talking about just plain colour in the background ut rather a image because the background colour is a gradient

is there a way of doing this in css? like putting ur div in a big div again and splitting it into three divs or so..it doesnt even have to be aligned in the middle for as long as the stupid white is gone

please help caus its pretty urgent and i have no clue what to do now.. i tried everything i thought wouldve wokred but it didnt.

oh ya im using dreamweaver8 for this..

screen:
Posted Image

thanks

p.s. sorry if this was already discussed
p.p.s. nothing seems to work.. even if u put a background colour in the div like..if there isnt a way which would work in both i might just as well go back to tables. i was surprised that when i put the divs in a table and tried to align the table it didnt work either

#Table_01 {
	position:absolute;
	left:0px;
	top:0px;
	width:1024px;
	height:768px;
	background-color: #CC0000;
}

Edited by schnupi, 15 October 2006 - 07:36 PM.


#2 Jacorre

    P2L Jedi

  • Members
  • PipPipPip
  • 824 posts
  • Gender:Male
  • Location:USA
  • Interests:Computers, Technology, Internet, Graphic/Web Design, Music, Soccer

Posted 16 October 2006 - 12:45 PM

If you're looking to have the page adjust use percentages instead of exact pixels for width and height settings.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users