CSS link pic inline

Lord Regno

Active Member
Reaction score
19
Here I have tried to make links to other sides but the pictures are getting strange can you help me to solve this problem?

Code:
#meny{
	margin-left: 0;
	padding-left: 0;
	font-size: 100%;
	padding-top:7px;
	}

#meny li{
	display: inline;
	list-style-type: none;
	padding-left:4px;}

#meny a{
	padding: 0.3em 2.85em;
	text-decoration: none;
	background: transparent url('../../Bilder/Knappar/buttonA4.jpg');}

#meny a:link{color: #000000;}

#meny a:visited{color: #000000; }

#meny a:hover{background: transparent url('../../Bilder/Knappar/buttonA5.jpg');}

#meny a#current{
	background: transparent url('../../Bilder/Knappar/buttonA6.jpg');
	color: #000000;}


Code:
<body>

<div id="centering">
<div id="sidhuvud">
<a href="../../default.html"><img alt="" class="linkpic" height="129" src="../../Bilder/gifwebb2.gif" width="180" />
</a></div>
<div id="kolumn1">

<ul id="meny">
<li><a href="Home" id="current"></a></li>
<li><a href="Allot of text"></a></li>
<li><a href="This is it"></a></li>
<li><a href="Hello"></a></li>
<li><a href="Number"></a></li>
<li><a href="Call"></a></li>
</ul>

</div>
<div id="kolumn2"> &nbsp;</div>
<div id="kolumn3"> &nbsp;</div>

</div>
</body>

</html>
 

Magentix

if (OP.statement == false) postCount++;
Reaction score
107

Lord Regno

Active Member
Reaction score
19
I think I explained the problem bad yesterday, I where tired and where going to go to sleep.

The pictures works. But some pictures been shown to 150%-200%, like its are one and a half to two picture on a link depends on the size of the text.

Example:
[ Home ] [ Another page ][ |[ Page two ][ |[Page three][ |
 

JerseyFoo

1/g = g-1
Reaction score
40
Why call it meny?

Code:
#meny{
	margin-left: 0;
	padding-left: 0;
	font-size: 100%;
	padding-top: 7px;
}

#meny li{
	display: inline-block;
	list-style-type: none;
	margin-left: 4px;
	background: transparent url('../../Bilder/Knappar/buttonA4.jpg');
        padding: 0.3em 2.85em;
}

a{
	text-decoration: none;
}

If you don't like that, don't use a list.

You will also probably need fixed-widths and heights for your button, backgrounds do not scale.
 

Lord Regno

Active Member
Reaction score
19
That code didn't work either. Well I will upload a link code so that you can see the problem:

EDIT3: Link removed

EDIT: meny is the Swedish word for menu
EDIT2: Added background-repeat:no-repeat; but now I have problems with the space
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top