+ 3
Please, help. How do I change the background color of only the top of my web page?
I can't get my pink bar to expand to the edges of the page. I want the pink bar with the title to cover the entire top and the full width but it's still surrounded by my white background. https://code.sololearn.com/W26dCxI8J6RB/?ref=app
13 Answers
+ 2
not best wa y but works try this
.design{
background-color:#ffb6c1;
background-attachment:scroll;
overflow-x:hidden;
width:110%;
margin-top:-10px;
margin-left:-10px;
}
+ 3
It's still not working.
+ 3
I'm on a phone using the app.
+ 3
That definitely helped a little but how can I get rid of the side scroll?
+ 3
Thank you so much. 😄
+ 3
I will right down the attributes you taught me for future reference.
+ 3
I've seen your codes. They are awesome. I've been coding for a year and I'm still on basic level.
+ 2
make a width 104%👍👍
+ 2
😁😁Well pratice make man perfect😁
+ 2
i think it should help you
https://www.sololearn.com/discuss/468962/?ref=app
+ 2
and thnx for visiting my codes
+ 1
Your problem is that you made its height 100% also. Change your design class in CSS to the follow: (Just remove height: 100%;)
.design{
background-color:#ffb6c1;
background-attachment:scroll;
overflow-x:hidden;
width:100%;
margin:auto;
}
+ 1
Maybe it's your browser then? After removing height: 100% it works fine for me on Chrome.
Which browser are you using? As I'm sure you've noticed by now, not forcing standards between all of the browsers is annoying for the developer side of things. lol