Jump to content
php.lv forumi

izvelne+ bildes


Recommended Posts

Man izvelnē bilde nav īstajā vietā :(




li css

#navigation li {list-style: none; background:  url(images/tab.png) repeat-x;color:#686868;padding-left:10px;} 

Kā risināt šo problēmu?</pre>



#navigation a { color: #fff; display:block; height:25px; line-height: 25px; text-indent: 10px; text-decoration:none; width:100%;}


Edited by Puika1
Link to comment
Share on other sites

  • 3 weeks later...

Vienkārši atver bildi GIMPā un pieliec caurspīdīgu augšējo maliņu klāt kādus pāris pikseļus.


Otrs variants ir relatīvi uzpozicionēt tekstu pret bildi.<pre class="prettyprint">#navigation a {position:relative;top:-5px;}</pre>

Edited by mareks.zirdzins
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...