[solved]please help me to correct this css code .

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
amin30b
Forum Members
Forum Members
Posts: 146
Joined: Sat Mar 31, 2007 8:02 am

[solved]please help me to correct this css code .

Post by amin30b »

Hi all

I control my textfields width with default input lable :

Code: Select all

input {
width: 130px;
font-size: 12px;
font-family: Tahoma;
background-color: #F7F7F7;
border: 1px solid;
border-color: #cccccc;
margin: 2px 10px 2px 2px;
}
but this solution has a bad conflict with my website buttons beacuse
all of them inherit 130px width from input properties and look very bigger than normal mode .
How can I define separated css class or ID for buttons ?
In some modules buttons have only a simple tag like

Code: Select all

{$submit}
and
when I define an specific ID like

Code: Select all

 <div id="button">{$submit}</div>
, it affects to background of button and not button itself .
Last edited by amin30b on Sat Aug 25, 2007 9:56 am, edited 1 time in total.
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: please help me to correct this css code .

Post by KO »

amin30b wrote:
In some modules buttons have only a simple tag like

Code: Select all

{$submit}
and
when I define an specific ID like

Code: Select all

 <div id="button">{$submit}</div>
, it affects to background of button and not button itself .
Have you tried controlling your button with styles like this?

div#button input {broder:none; and other your styles}

br,K
Post Reply

Return to “Layout and Design (CSS & HTML)”