Problem with CSS padding/margin
-
Hello!
I’m rather new to HTML/CSS and programming in general. I have encountered a problem regarding the navigation area on my up and coming webpage.
The problem, in this case, is that I can not find a way to remove some margin/padding on the other side of the navigation bar (the navigation is set to float:left)
I have tried everything. I’ve tried to look through if I have set any padding or margin on the text of the navigation bar and can’t seem to find the source of it.Could it be because of a regular syntax error or could it be because list-style-type:none is stopping it from deleting the margin?
Are there further enhancements I can make to my code here, as I am not an expert at this yet?My code is the following:
#nav {
background:gray;
float:left;
padding:0px 0px 60px 0px;
width:26.3%;
margin:0px;
}#nav ul {
margin:0px;
}#nav ul li {
color:white;
list-style-type:none;
margin:38px 0px 38px 0px;
font-weight:bold;}
#nav ul li a {
background:black;
color:white;
padding:15px 10px 15px 0px;
margin:0px;}
-
Sorry, dude, this is not the right place to discuss that.
This Community is for Notepad++ - related discussion.
Good luck in your quest for answers–somewhere else.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login