Simple Stupid

C

Chris Slowe

I've know html and css pretty well but sometimes i come up against a
problem that just baffles me. and it's usually a simple one. so if
you've got a sec could you take a look here:

http://www.cafeculturel.org.uk/artobertest/

and tell me why the image isn't aligning with the top of the page.
I've tried insisting there are no page margins both in html and css,
there are no borders on the image... If you put text as the first line
in the body it's right up there at the top. If you view it in safari
it works as expected.

I mean this is basics and yet... it's been one of those days...

thanks for any help

chris
 
D

dorayme

Chris Slowe said:
I've know html and css pretty well but sometimes i come up against a
problem that just baffles me. and it's usually a simple one. so if
you've got a sec could you take a look here:

http://www.cafeculturel.org.uk/artobertest/

and tell me why the image isn't aligning with the top of the page.
I've tried insisting there are no page margins both in html and css,
there are no borders on the image... If you put text as the first line
in the body it's right up there at the top. If you view it in safari
it works as expected.

I mean this is basics and yet... it's been one of those days...

You could style the first para with margin-top: 0; and this would
"fix" at least for Firefox.

But really, if you know "css pretty well", what are you doing
with "align" in <img...>? And best not to use pt sizes for fonts.
And, use 4.01 Strict to keep you disciplined.
 
C

Chris Slowe

You could style the first para with margin-top: 0; and this would
"fix" at least for Firefox.

But really, if you know "css pretty well", what are you doing
with "align" in <img...>? And best not to use pt sizes for fonts.
And, use 4.01 Strict to keep you disciplined.

OK well "pretty well" means I can usually get things to work, and
normally I'd get rid of any depreciated stuff but this was rough and
ready. as it happens firefox didn't like the align in the <img> tag
and that's what was causing the problem. doens't help using an ancient
version of golive to knock up these rough and ready things...

thanks,

c
 
D

dorayme

OK well "pretty well" means I can usually get things to work, and
normally I'd get rid of any depreciated stuff but this was rough and
ready. as it happens firefox didn't like the align in the <img> tag
and that's what was causing the problem. doens't help using an ancient
version of golive to knock up these rough and ready things...

btw, I mean px rather pt. Use % or em for font-size.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top