The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> word spacing
MindyT
post Apr 27 2016, 01:08 PM
Post #1


Advanced Member
****

Group: Members
Posts: 165
Joined: 12-November 13
Member No.: 19,963



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>  
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Duodecimalist
post May 16 2016, 01:14 PM
Post #2


Newbie
*

Group: Members
Posts: 11
Joined: 23-October 14
Member No.: 21,713



You could add a style like this.
CODE
a {
  padding: 0 10px;
}
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post May 16 2016, 07:31 PM
Post #3


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,183
Joined: 9-August 06
Member No.: 6



Yeah, use margin or padding depending on what fits best.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 22nd March 2019 - 05:57 PM