Text Problem – CSS Solution.

Soldato
Joined
26 Feb 2004
Posts
4,800
Location
Hampshire, England.
Hey guys,

What’s the CSS property for closing the gap between my text buttons?

untitledrh9.png


They’re a little bit too far apart atm for my liking :(

Cheers,

SW.
 
SherberT* said:
Padding? Can't tell much from a picture,
Thanks mate :)

Sorry, its basically a Div and I've just put the text inside it, prior to making them buttons.

EDIT: Just realised it's because of <p> :p

My bad...

But how do I increase the space between the buttons?

Say I wanted this ->

Home

About


And not this ->

Home
About


Would I control this, in actual page code or in CSS?

Cheers,

SW.
 
well the only reason they would be spaced about would be because
some padding or margin has been applied to one or more of the elements
in the list.
 
I presume these pages will link to something, so you can put a class to the a tags and use padding to increase the gap between them.
 
If you are just putting in your text and literally returning after each line ie:

Text return
Text return
Then you will have <P> paragraph tags where the defult css elements of border and margin will effect your spacing change these (may require negative figures) to get it how you want

you may also be able to adjust the line height of your text
 
Thanks guys - I've sorted it now :)

It was a combination of things in my code...

Cheers,

SW.
 
Back
Top Bottom