123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|251|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Web Development -> Lots of CSS Problems

Mon, 02 Oct 2006, 04:54
mike_g
I am designing a website at the moment. I started leaning CSS yesterday by playing around with the commands and made a stylesheet. Got a few problems though:

I want the page size to be fixed so I put this bit in:


Then on each page I want the size fixed i call it like this:

That works on my computer at home, but not on the college computers does anyone know why? Some, but not all of the CSS stuff works at home but not here?

Also I cant seem to get the vertical align to work at home or here. Example:


Another thing I want is to have the whitespace and linebreaks included so I have set white-space: pre; which seems to work but if I copy the text from the page and paste it into notepad the line breaks are gone. No good for code

I could add
for each line but that takes time and I won't get whitespace. Anyone know what would be best for me to do?








Mon, 02 Oct 2006, 06:16
HoboBen
Does the college have screens with shorter resolutions?

How are you linking to your stylesheet (assuming that you are linking?)

-=-=-
blog | work | code | more code
Mon, 02 Oct 2006, 06:27
mike_g
The college computers have higher res, mine only goes up to 1024*768.

How are you linking to your stylesheet

Sorry forgot to mention:

Mon, 02 Oct 2006, 07:33
svrman
Perhaps it's the browser. Most colleges still use ie6 which is outdated as you may already know.
Otherwise, try slapping a "px", "%" or whatever to the numbers.

I don't see what you're trying to do with vertical-align but I don't think it works like that.
Tip: padding can be divided into left, top, right and bottom

ex: padding: 10px 0px 10px 10px; <- which might be what you're looking for...

-=-=-
BlitzRSS script back online!
Tue, 03 Oct 2006, 04:06
mike_g
Cool, i'll try that