Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Button spacing - gap.
Old 08-19-2008, 01:05 PM Button spacing - gap.
Junior Talker

Posts: 3
Trades: 0
helllo everyone, new here and new to web design and loving it so far.

ok, so here's my issue. my buttons display correctly w/ no gaps but the coding is on one LONG line. (see attachment 1)

whenever I try to format my button code for organization, it puts a gap inbetween the buttons. (looks like i exceeded my newbie attachment quota so cant attach that image but hope you guys get the picture)

what can i do?

thanks.
Attached Images
File Type: jpg siteworks.jpg (39.2 KB, 7 views)
nismo714 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-19-2008, 01:33 PM Re: Button spacing - gap.
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
Both the <a> tag and the <img> tag are inline elements. You might be able to fix this by adding this rule to your stylesheet:
".buttoncontainer img{display:block;}"
if that doesn't work, try
".buttoncontainer a{display:block}"
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 08-19-2008, 01:55 PM Re: Button spacing - gap.
Junior Talker

Posts: 3
Trades: 0
Quote:
Originally Posted by angele803 View Post
Both the <a> tag and the <img> tag are inline elements. You might be able to fix this by adding this rule to your stylesheet:
".buttoncontainer img{display:block;}"
if that doesn't work, try
".buttoncontainer a{display:block}"
thanks for the input!

but when I added ".buttoncontainer img{display:block;}" to my style sheet,
it displayed my buttons stacked vertically.
nismo714 is offline
Reply With Quote
View Public Profile
 
Old 08-19-2008, 05:13 PM Re: Button spacing - gap.
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Put the links into an unordered list, set the <li> to display:inline, that will give you a horizontal list.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-20-2008, 02:24 PM Re: Button spacing - gap.
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
I knew I was going to miss something. If you did it the way I suggested, you would have to float them all. Ladynred's suggestion is much easier and a lot better.
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 08-20-2008, 08:47 PM Re: Button spacing - gap.
Junior Talker

Posts: 3
Trades: 0
Quote:
Originally Posted by LadynRed View Post
Put the links into an unordered list, set the <li> to display:inline, that will give you a horizontal list.
That did the trick! thanks!
nismo714 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Button spacing - gap.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26953 seconds with 13 queries