开发者

HTML/CSS Positioning a logo to always be at the top left, no matter the screen size

开发者 https://www.devze.com 2023-01-11 21:15 出处:网络
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 si

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 开发者_如何学Gogets 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?


Does this CSS not do the trick?

position:absolute;
left:0;
top:0;


position:fixed; top:0; left:0;
0

精彩评论

暂无评论...
验证码 换一张
取 消