Why aren't my Internal Style Sheet rules affecting elements in my HTML document?

bad_ambassador

New member
i always find web design frustrating. these rules are completely ridiculous and there's no reason for them to be so complicated.
it's messed up.

anyway, i was trying to use an internal style on my single webpage to alter the margins of dropdown boxes so my style sheet only has one element.

<style type="text/css">
.drop {margin-right: 200px}
</style>

I put this inside the head of my document - before the body and after the title of my document.

so it would be <html><head><title></title><style></style></head><body>
etc.....

Is this right so far? I thought so....

Next, I wanted to add my drop class to parts of my document. I want to bring my dropdown boxes closer to the left of the page so that they're in line with each other, and at the same time not too far away from their labels to the left.

so i made dropdown boxes like this.

<select name="under5" class="drop"> ..... </select>

Is this the appropriate method?
Do I need to do some linking to my internel style sheet or anything?


It really is annoying as holy hell.
 
Back
Top