What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » some css help

some css help
Author: Message:
Supersonicdarky
Veteran Member
*****

Avatar

Posts: 2317
Reputation: 48
– / – / Flag
Joined: Feb 2005
Status: Away
O.P. some css help
code:
#menu a{
    width: 50px;
    height: 15px;
    display: block;
    background: #011F9E;
    color: white;
}
#menu a:hover{
    width: 47px;
    height: 15px;
    display: block;
    background: #E1E1FF;
    border-left: 3px solid #011F9E;
    color: white;
}

this makes what i want, but every link is on a new line. how do i make it horisonal?

now:

<-->
<-->
<-->
<-->

i want:

<--><--><--><-->

(<--> is a link)
12-20-2005 02:45 AM
Profile E-Mail PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: some css help
remove "display:block;"
12-20-2005 08:47 AM
Profile PM Find Quote Report
Supersonicdarky
Veteran Member
*****

Avatar

Posts: 2317
Reputation: 48
– / – / Flag
Joined: Feb 2005
Status: Away
O.P. RE: some css help
but then it ignores the width and the height and it becomes the size of the text inside :(
12-20-2005 12:01 PM
Profile E-Mail PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: some css help
display:inline-block; ? not sure if itll work *-)
12-20-2005 12:04 PM
Profile PM Find Quote Report
Supersonicdarky
Veteran Member
*****

Avatar

Posts: 2317
Reputation: 48
– / – / Flag
Joined: Feb 2005
Status: Away
O.P. RE: some css help
nope, no difference
12-20-2005 12:06 PM
Profile E-Mail PM Find Quote Report
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
35 / Male / –
Joined: Jun 2004
RE: some css help
code:
#menu a{
    width: 50px;
    height: 15px;
    display: block;
    background: #011F9E;
    color: white;
    float: left;
}
#menu a:hover{
    background: #E1E1FF;
    border-left: 3px solid #011F9E;
}

In bold is the bit you need to add to make them all on one line, and i also deleted the stuff you dont need in the :hover statement because it should be inherited from the previous bit.
12-20-2005 12:32 PM
Profile PM Find Quote Report
Supersonicdarky
Veteran Member
*****

Avatar

Posts: 2317
Reputation: 48
– / – / Flag
Joined: Feb 2005
Status: Away
O.P. RE: some css help
thnx! Worked! :D
12-20-2005 12:51 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On