![]() |
![]() ![]() |
![]() |
jjordan33 |
![]()
Post
#1
|
Group: Members Posts: 9 Joined: 1-April 19 Member No.: 26,868 ![]() |
Hi, I have a header that I want to be at the very tip top, with no space above it, and to stretch the full width of the screen with no space on the sides. However, that is not what I have.
CODE header { margin-top: 0; width:100%; background-color:#B7D39E; } |
pandy |
![]()
Post
#2
|
🌟Computer says no🌟 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 ![]() |
You must also get rid of the margin or padding browsers add by default to BODY. See this FAQ entry.
https://htmlhelp.com/faq/html/effects.html#no-margins Ignore the margintop and so on. That's very outdated. CSS is enough. |
jjordan33 |
![]()
Post
#3
|
Group: Members Posts: 9 Joined: 1-April 19 Member No.: 26,868 ![]() |
Thank you. That took care of it.
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 24th April 2024 - 12:34 PM |