dcolin
12-26-2004, 03:40 PM
I am trying to learn CSS and i have been trying to put three names at the top of my page in these positions: left, center and right but have failed on each attempt.Is there a way of putting these names into the places mentioned without using <style="position: absolute;">. Thanks for your help and the time you so generously give.
starlet
12-26-2004, 03:44 PM
Does it have to be css? Tables seems like it'd be a much easier way to do that...
dcolin
12-26-2004, 08:24 PM
Does it have to be css? Tables seems like it'd be a much easier way to do that...
Yes i quite agree but i am trying to learn CSS and break away from using tables. I am using the following code:
<style type="text/css">
h1 {width: 100%; position: absolute; left: 0px; top: 0px; margin: 0px; color: red; font-size: 16px; font-family: arial; text-decoration: underline;}
h2 {width: 100%; position: absolute; left: 45%; top: 0px; margin: 0px; color: green; font-size: 16px; font-family: helvetica; text-decoration: underline;}
h3 {width: 100%; position: absolute; left: 88%; top: 0px; margin: 0px; color: blue; font-size: 16px; font-family: arial; text-decoration: underline;}
</style>
Would really appreciate it if you could tell me if it's right. Thanks once again.