Community
    • Login

    Problem with CSS padding/margin

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    marginshelpcsshtmlpadd
    2 Posts 2 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tomass1047T
      tomass1047
      last edited by

      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;

      }

      Scott SumnerS 1 Reply Last reply Reply Quote 0
      • Scott SumnerS
        Scott Sumner @tomass1047
        last edited by

        @tomass1047

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors