Help - Search - Members - Calendar
Full Version: word spacing
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
MindyT
I have this nav that I want to put spaces between the menu options. I tried word-spacing but since some of the options have more than one word, word-spacing won't work. should I use margin-padding or is there a css3 that would work?

CODE


      <nav>
        <a href="home.php" tabindex="1" accesskey="H">Home</a>
        <a href="aboutUss.php" tabindex="2" accesskey="A">About Us</a>
        <a href="services.php" tabindex="3" accesskey="S">Services</a>
        <a href="quote.php" tabindex="4" accesskey="Q">Get A Quote</a>        
        <a href="contact.php" tabindex="5" accesskey="C">Contact</a>
     </nav>  
Duodecimalist
You could add a style like this.
CODE
a {
  padding: 0 10px;
}
pandy
Yeah, use margin or padding depending on what fits best.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2019 Invision Power Services, Inc.