0

Regarding html5 and padding

Guys if i apply padding-top to my top navigation bar the dropdown elements also get that amount of padding and when i hover above a element the dropdown elemnts inside that element also get that much padding and a white space appers.I hope i could show you the screenshot.If anyone understands my problem please help me.

24th Feb 2017, 2:53 PM
Sangharsh Seth
Sangharsh Seth - avatar
3 Réponses
+ 2
you can try it! if u have nav ul il { ... } make sure that u put it here bc this will directly style the children. but I dont like using ul in nav bars. give them a weird buffer...
24th Feb 2017, 5:25 PM
Michael Szczepanski
Michael Szczepanski - avatar
0
try giving the nav bar a specific class name. it might be applying that attribute to all of its children by just using nav. if thus doesnt work then wrap the children in a div with a class that negates the padding. that would look bad, but might work :/
24th Feb 2017, 5:01 PM
Michael Szczepanski
Michael Szczepanski - avatar
0
can i give the children a specific class and give them padding 0 px,will that work.
24th Feb 2017, 5:04 PM
Sangharsh Seth
Sangharsh Seth - avatar