Topic: CSS programing

ok, so im a complete noob at using the css, i have this one course where i have to design a simple website using an external style sheet.

Now my problem is that i made my website at home, and i have a pretty large monitor, but when i open the files at school, the layout is completely messed up, and it looks really bad. Im guessing its because the compute monitors are much smaller than mine at home

So question, is there anyway to fix the layout so it will look the same no matter where u open it? cuz i dont wanna hand in my website to the prof and it looks all fu*ked up

Re: CSS programing

Dont use absolute values (pixels), try to use percentages.

Or maybe you can design it for the smaller screen, and ensure it looks ok
on the bigger one after that (E.g. just center it or something).

Morbo: Morbo can't understand his teleprompter. He forgot how you say that letter that looks like a man with a hat.
Linda: It's a 't'. It goes "tuh".
Morbo: Hello, little man. I will destroy you!!

http://www.youtube.com/watch?v=cpP7b2lUxVE

Re: CSS programing

You can use variable width (percent width) but it tends to look bad. Design for a 800 x 600 monitor and either center the layout or align the layout to the left.

Rehabilitated IC developer

Re: CSS programing

How is using percentages the same thing as using a variable width :S.

Morbo: Morbo can't understand his teleprompter. He forgot how you say that letter that looks like a man with a hat.
Linda: It's a 't'. It goes "tuh".
Morbo: Hello, little man. I will destroy you!!

http://www.youtube.com/watch?v=cpP7b2lUxVE

Re: CSS programing

id assume because it changes depending on the size of the monitor tongue but even then its an iffy term to use in this scenario smile

Re: CSS programing

CSS! I love it!!

http://www.youtube.com/watch?v=nYRAvNp_Llw

God: Behold ye angels, I have created the ass.. Throughout the ages to come men and women shall grab hold of these and shout my name...

Re: CSS programing

using percentages is terrible considering the different resolutions and browsers that are being used tongue
But a fixed width is crappy too tongue

welcome to the world of design!

Elrohir
"Abstract art is the product of the untalented, sold by the unprincipled to the utterly bewildered.."

Re: CSS programing

eh, another noob question, how do i change the % or the widths in the first place

Re: CSS programing

notepad?

Or do you mean:
width: 150px;

to

width: 75%;

Morbo: Morbo can't understand his teleprompter. He forgot how you say that letter that looks like a man with a hat.
Linda: It's a 't'. It goes "tuh".
Morbo: Hello, little man. I will destroy you!!

http://www.youtube.com/watch?v=cpP7b2lUxVE

Re: CSS programing

meh, never mind, i had to submit it last night, im just hoping my prof has a large monito tongue

Thanks for ur help tho smile