I have a slider that for some reason is half obeying margin 0? Also, is there anyway I can make the top bar background not have such a large white border around it? I'm trying to make it start right underneath the browser url bar but it seems to leave a fairly large gap? http://ispiked.net/tests
Add position: relative
to the div with class="oneByOne1"
. That should fix the slider.
As for the top bar, add margin: 0;
to both the body
element and the p
element inside .topbar
- afterwards you might want to add something like padding-top: 15px
to that same p
element.
Also, is there anyway I can make the top bar background not have such a large white border around it?
tried CSS like
html, body { margin: 0px; padding: 0px; }
to reset the layout at the beginning?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.