Having multiple dropdowns (select boxes) on my website has led me to desire different alignments for them. For instance, I would like one dropdown to be centered on a specific page while another should appear on the right side of a separate page.
Since my designer is currently unavailable due to holidays, I am eager to give it a shot myself. However, I lack expertise in CSS definitions, although I can work with existing stylesheets.
The current CSS code looks like this:
select
{
background: #F8F8F8;
border: 1px solid #CCCCCC;
padding: 2px;
}
I made some adjustments on one page:
select
{
background: #F8F8F8;
border: 1px solid #CCCCCC;
padding: 2px;
float:left;
margin-left:20px;
}
Although the result looked good on that particular page, as soon as I navigated to an inner page, the select box shifted to a different position entirely.
How can I apply CSS differently on various pages?
Thank you!