Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
Like Tree3Likes
  • 3 Post By Ronald Roe

Thread: HTML help

  1. #1
    Junior Member yossry's Avatar
    Join Date
    Dec 2017
    Posts
    2
    Member #
    58019

    HTML help

    why cant the last border-right be removed from next to contact us?
    HTML Code:
    <!DOCTYPE html>
    <html>
        
        <head>
            <meta charset="utf-8">
            <title>WebSite</title>
            <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
           <link rel="stylesheet" href="stylesheet.css" type="text/css">
    </head>
        <body>
          <div id="container">
           <div id="header">
            <div id="brand">
            <h1><a href="#">My Home Page</a></h1>
            
            </div>
            <div id="searchbox">
              <form method="get">
                 <input type="text" class="text">
                 <input type="submit" value="search a topic" class="submit">
              
              
              </form>
            
            
            </div>
            <div class="clear">
            
            
            
            </div>
            
            
            
            
            
           
           
           </div>
          
           
          
          <div id="meanu">
          <ul>
          <li><a href="#">Home</a></li>
          <li><a href="#">Online Tutorials</a></li>
          <li><a href="#">Get a Private tutor</a></li>
          <li><a href="#">Sign Up</a></li>
          <li><a href="#">Contact Us</a></li>
          
          
          
          </ul>
            
            
            
            
            </div>
          
          
         
           </div>
           
        
        
        
        
        
      
            
    
          
      
      
      
      </body>
    </html>
    
    
    
    
    
    and the CSS file :
    
    
    
    
    
    
        
     #container {
    	 width: 1050px;
    	 border:1px solid red;
    	 margin:0 auto;
    	 color:#F63;
    	  }
    #header{
    	height:100px;
    	padding:10px 0;
    	
    	
    	
    	}	  
    #brand	{
    	float:left;
    	
    	
    	}  
    
    h1 a{
    	font-size:50px;
    	font-weight:300;
    	color:#9152B8;
    	text-decoration:none;
    	
    	
    	}	
    #searchbox{
    	float:right;	
    	background:linear-gradient(#E2F1B3,#C6E964);
    	width:400px;
    	height:50px;
    	padding:20px 20px 0 20px;
    	margin-top:20px;
    
    	
    	}
    .text{
    	float:left;
    	width:200px;
    	padding:5px;
    	font-size:15px;
    	color:orange;
    	background:white url(search.png) right center no-repeat;	
    	
    	}	
    .submit{
    	float:right;
    	padding:5px;
    	font-weight:bold;
    	color:white;
    	background:#A75106;
    	font-size:15px;
    	}	
    .clear{
    	clear:both;
    	
    	
    	
    	}
    #meanu{
    	height:70px;
    	background: linear-gradient(#F8F59F,#DEDD4B);
    	padding: 7px 0;
    
    	
    	
    	
    	}	
    	
    	
    	
    	
    ul{
    list-style:none;	
    	
    	
    	}
    
    	
    		
    #meanu ul li {
    	float:left;
    	padding:0 30px;
    	height:30px;
    	border-right: 2px solid #9C839F;}
    	
    	
    #menu ul li:last-child{
    	border-right: none;
    	
    	
    	
    	}	
    	
    	
    	
    #meanu ul li a{
    	text-decoration:none;
    	text-transform:uppercase;
    	font-size:17px;
    	color:#5d12e7;
    	line-height:30px;
    	
    	
    	}
    Last edited by Ronald Roe; Dec 20th, 2017 at 07:17 AM.

  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Change #menu ul li:last-child to #meanu ul li:last-of-type
    yossry, htmlcode and bernice like this.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  4. #3
    Junior Member yossry's Avatar
    Join Date
    Dec 2017
    Posts
    2
    Member #
    58019
    Thank you so much.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:36 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com