Forums

[resolved] How to display links in one line rather than two? (6 posts)

  1. Sulis
    Member
    Posted 3 years ago #

    I am trying to get my links in the right sidebar to display in just one line, but I can't figure it out. Here is my site:

    http://frenchtofluency.com/

    For example, you can see that the one link I have in the sidebar (How To Learn Any Language Forum) displays in 2 short lines, but I would like it to be on just one line. There appears to be enough room for it to fit, but I don't know what to change to make it happen. Could someone please take a look at it and explain how to do it?

    Thanks!

  2. Evita
    Member
    Posted 3 years ago #

    Try (in your style.css)
    .list3 li a {display:block;}

  3. Sulis
    Member
    Posted 3 years ago #

    Thanks for replying, but I'm afraid it didn't work. Any other ideas?

  4. Sulis
    Member
    Posted 3 years ago #

    Anyone??

  5. vachi
    Member
    Posted 3 years ago #

    hey you changed your theme i like this one better

    yeah in your style.css

    .list3 li{
    	background: url(images/ico-list.gif) no-repeat left;
    	border-bottom: 1px solid #f1f1ed;
    	line-height: 25px;
    	padding: 0 0 0 25px;
    }

    add width there like

    .list3 li{
    	background: url(images/ico-list.gif) no-repeat left;
    	border-bottom: 1px solid #f1f1ed;
    	line-height: 25px;
    	padding: 0 0 0 25px;
    	width: 270px;
    }

    edit: you could have added the width to list3 as well, and other list links can be changed like this, gives same result

    .list3{
    	padding: 0 0 0 5px;
    	width: 270px;
    }

    and good luck with your site, i have it book marked

  6. Sulis
    Member
    Posted 3 years ago #

    Thank you for your very clear instructions, Vachi - it worked perfectly! Hey, it's hard learning all this CSS stuff, lol. Yeah, I like this theme better too.

    I checked out your site too - looks great. I LOVE asian movies!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.