html - Spacing comes automatically when i declare any div -
any section / div / header
declare in html
getting 1px
off spacing , causing issue when hover
on element other element such header
start shaking animation. have tried *{margin:0 padding: 0
didn't fix issue been 2 days trying figure out failed maybe guys can answer
css
header { position: fixed; top: 0px; width: 100%; box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05); z-index: 9999; } header .top-bar { height: 50px; background: #642891; } header .top-bar .logo { line-height: 50px; } header .top-bar ul { list-style: none; } header .top-bar ul li { display: inline-block; } header .top-bar ul li { line-height: 50px; padding: 10px; color: #fff; } header .top-bar ul li a:hover { background: rgba(0, 0, 0, 0.2); border-radius: 4px; -webkit-transition: 0.3s ease; transition: 0.3s ease; } header .navigation { width: 100%; background: #fff; } header .navigation ul { list-style: none; position: relative; } header .navigation ul.menu > li:hover > { background: rgba(100, 40, 145, 0.08); color: #642891; } header .navigation ul li { display: inline-block; } header .navigation ul li { display: block; font-size: 13px; font-weight: 500; color: #444; padding: 15px; }
could plz post rendered css?
cause can child element of .navigation
has margin-top
reaches out .navigation
container should check too.
Comments
Post a Comment