Check alle échte Black Friday-deals Ook zo moe van nepaanbiedingen? Wij laten alleen échte deals zien
Toon posts:

[CSS] [HTML] Divs on the bottom of a sticky (fixed) div

Pagina: 1
Acties:
  • 212 views

Verwijderd

Topicstarter
I've created a sticky navigation bar that resizes when scrolling down. In this navigation bar I created one relative (parent) div called header_wrap containing two absolute (child) divs. When doing this the content of those child divs is not visible anymore.

When removing the option position: relative; from the parent div header_wrap the content of the child divs become visible however at that moment they ignore the given width of 970px in the header_wrap.

I created a jsfiddle to demonstrate: http://jsfiddle.net/wvUWR/1/

Thanks in advance!

[Edit]

Had to add height: 100%; to the header_wrap to fix this problem.
Problem solved!

[ Voor 7% gewijzigd door Verwijderd op 29-12-2013 23:36 ]


  • NMe
  • Registratie: Februari 2004
  • Laatst online: 20-11 11:59

NMe

Quia Ego Sic Dico.

Fijn dat het is opgelost, maar we runnen hier een Nederlands forum en zouden het op prijs stellen als je dus in het Nederlands post. Daarbij: Waar hoort mijn topic? ;)

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


Dit topic is gesloten.