Quote:
|
So, how do I get the image to be positioned on the right instead of the left?
|
.ad { float:right; margin-top:5px; margin-right:5px } in your CSS.
Floating right throws stuff directly to the
right. Floating stuff left, throws it left. The margins will nudge it back, left a little, into position for you. That's the basic principle, anyway. In
all browsers...
Validation is also very important, but without a proper grounding, I would say most of what you produce in this mannner, will be teeming full of errors anyway. Validation will help you write proper syntax, but it can't tell you to dump frames, use divs, or suggest methods of design. Only a human being can tell you these things.
The code I've offered up won't help you deal with the other errors - but I think, get a feel for the principle of floating things left and right, rather than all that absolute positioning. Combined with margins and padding, you'll soon be looking at a more intuitive system for reliable positioning.
Then when you've done something you're happy with, keep running it by the validator, to check your progress. That will indeed assist you in writing the code correctly.
I'm sure others will be able to assist you with some reference material, regarding floating and positioning elements.
I doubt this will help greatly, but I hope it puts you in the right direction.
Edit:
Looks like you've used float before. Surprised you hadn't tried it already.
Regards,