CSS Tutorial for Beginners - 35 - Fixed position for an element

preview_player
Показать описание
In this video we take a look at using fixed positioning.

Рекомендации по теме
Комментарии
Автор

that was pretty good actually I see Wix using it in its advertisement tutorial.

yasmeenamani
Автор

If I set up a div element at the top of each page having banner and nav in a fixed position, when the users scrolls down, how do have the content of the page flow underneath and out of sight?  Or will this be covered in a future lesson?  Thanks.

Yeldarb
Автор

you apply div tag with background color red and black then why not it color the whole line it just color the only width of the text

geopolitics_globallookout
Автор

sir I've Question as you sad the absolute positions set at your desired position and fixed also do the something but fixed property fixed the position
My question is when you moved your scroll bar downward or upward the div of absolute is not our desired position it has changed the position

muhammadadnanakmal
Автор

found out that using fixed against a normal element is way more useful

aqva
Автор

If fixed is a locked in location on the screen, why is the absolute element moving up and down. What's driving that?

animan
Автор

block element color the back all the way from left and right the why in no in this case

geopolitics_globallookout
Автор

why did you write div.div1, div.div2 and so on and not just div1, di2, div3?

RaduBigGun
Автор

Do we have to write in html like this
<div>
<div class="div1"> blah blah... </div>
..
..
</div>
But it's not working... I don't know why...? Plz help someone

sagunsangwan
Автор

I think the best use for fixed positioning is a background image

RizzoDaManiac