#Section padding its going under header

36 messages · Page 1 of 1 (latest)

grave fiber
#

I have a problem I give every section a second class .section to give a padding for each section but first section padding its going under header I don't want that to happen I want padding to start from main

calm tulip
#

Is your header's position absolute?

grave fiber
#

I found solution its because the header its fixed

calm tulip
#

o

#

nice

grave fiber
#

Thanks man 🙂

#

@calm tulip I think now another issue 🙂

#

:v

calm tulip
grave fiber
#

yes

#

at mobile devies

calm tulip
#

hmm

#

can i see ur css?

grave fiber
#

which class?

#

for header?

calm tulip
#

yea i suppose, anything that might be relevant

grave fiber
calm tulip
#

could it be bc the margin isn't 0 in some element, causing the header to get pushed down?

grave fiber
#

No I don't think

#

I tried giving the header margin 00

#

0

#

but not working

dapper berry
grave fiber
#

@dapper berry Yes I know but why to work with childs in this situation

#

its just working with position absolute and fixed

calm tulip
#

I mean, you could always keep the header position absolute, and then just add more padding for the first section

grave fiber
#

its searching a loot of padding when its under header

calm tulip
#

what about ur media queries? can i see the css for that?

grave fiber
#

@calm tulip that is the only solution

#

bring the position fixed back and give the home section more paddng

#

padding

calm tulip
#

alr then, that words too

grave fiber
#

Thanks

calm tulip
#

no need to thank me lol, I didn't solve anything 😅