Jump to content
sinnermann

ajutor css

Recommended Posts

Am 2 coloane stanga dreapta unde am diferite meniuri

La butoanele unde textul va fi prea lung vreau ca el sa se centreze si sa ramana in buton sa nu mai iasa din chenarul butonului

cum pot face ?

in momentul d fata css-ul pt meniu arata asa :

	padding: 7px 10px;
float: left;
text-decoration: none;
color: #fff;
background: url(../images/a_bg.png) repeat-x;
clear: both;
width: 100%;
height: 20px;
cursor:pointer;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
line-height:28px;
font-weight:bold;

Link to comment
Share on other sites

daca ai da si o poza sa vedem exact ce se intampla... si ai da si codul complet al meniului poate te-ar ajutat careva:)

exista mai multe cauze posibile pentru ce descrii tu... incearca sa adaugi la css:

text-align: center;

display: inline-block;

width: 100px;

overflow: hidden;

(inloc de 100 pune lungimea care vrei)

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.

Guest
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...