tags:

views:

61

answers:

3

Hi everybody,

My question is a little hard to explain! Basically, I'm designing a website in HTML/CSS, and I need the logo to always be at the top left. On a windows machine, you can resize the browser from any side if I resize from the left hand side, my logo gets cut off.

A good example of what I'm looking for is facebook, however you resize the screen the logo will stay locked in the top left corner.

Am I having a blonde moment here, or is there a specific way of doing it?

Cheers, Will

+8  A: 

Does this CSS not do the trick?

position:absolute;
left:0;
top:0;
hollsk
Or `position:fixed;` if you want it to stay there even when you scroll.
qmega
Beware of position:fixed if you have the misfortune to have to support IE6 though, it doesn't play nicely with it at all. Edit: Well, there are workarounds but it's a massive pain in the nads (like almost everything is with IE6)
hollsk
A: 

Why don't you look at the facebook's markup to see how they implemented it?

EDIT: Removed suggestion to ask on doctype.com.

silvo
What is the problem with my answer? I tried to encourage the OP to do some work on his own. You know, give him a fishing stick instead of the fish...
silvo
+1  A: 
position:fixed; top:0; left:0;
aadravid