![]() |
|
|
|||||||
| General Website Design General discussions about website design can be found here. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello,
I have an application in d4php using smarty and css. What i want is to define different styles for different classes of inputs. For instance, here a sample of my CSS : input { padding:2px; border:1px solid #6A6A6A; font: normal 1em Tahoma, sans-serif; color:#000000; } Problem is this style is applied for all inputs, includind texts, checkbox and buttons. I'd like to define different styles for buttons and checkboxes. I tried input[type="checkbox"] but this not work. I know i can do it using class, but i don't know how to attribute a class to a checkbox, so the generated html will have a class and i can using .classname in CSS. Any ideas will be very appreciated. Thanks in advance ! |
| Sponsored Links |
|
|
|
|||
|
Hello,
Thanks for your answer. I don't want to use Styles in D4php, because i want to isolate the interface from the php code. So i'm using the CSS directly into the html template. D4PHP does not know if i'm using CSS or not. |