PDA

View Full Version : won't align left in IE


loki
07-07-2005, 08:25/08:25AM
i can't get a tag to align left in IE, it's good for fireworks.

can someone help me out?

h1.in_line {
font: bold 0.65em Arial, Helvetica, sans-serif;
color: #999999;
background:transparent;
display:inline;
text-align: left
} {

the test page is http://www.craigmclaughlan.com/ws/paul.html

and it's the very top left piece of text ("Windsor TEFL courses").

thanks

srikanthsh
07-07-2005, 09:18/09:18AM
Delete display:inline; and apply margin:0;.

loki
07-07-2005, 09:23/09:23AM
that did the trick thanks.

BTW, what did i just do?
:)

srikanthsh
07-07-2005, 09:40/09:40AM
Welcome. I didn't see need for display property. Deleted that. Then applied margin property to reduce h1 tag's default margin.

WebSavvy
07-07-2005, 09:44/09:44AM
Adding float:left also sometimes works, too. ;)

By removing the display-inline and adding margin:0px; means you've told it to not leave any spaces between the left edge and where the line begins.

Play with it by changing margin:25px; and you'll see how far over toward the right it will move.

You can add padding too by using padding:1px; or whatever amount (x-number) you wish.

Spacing can also be added using spacing:1px; again the number can be adjusted.

loki
07-07-2005, 09:49/09:49AM
you guys make it look easy!