Els wrote:
> It works correctly in Firefox, but not in IE6 on WinXP.
Yeah, I didn't mention it in the original post, but I tried
it successfully on Firefox as well.
> Why don't you just write
> <h1 id="linky">l</h1>
> ?
Good question -- I'm automatically generating the html where
I originally encountered the problem, and it uses the same
function to generate hyperlinks wherever they are. When I
edited it down to the sample code that I posted, it never
occured to me to get rid of the anchor tag.
> Workaround could be this:
>
> <style type="text/css">
> body {
> margin-left:0;
> text-indent:5%;
> }
> h1{
> text-indent: 0%;
> }
> </style>
This works, but when I apply it to the real page, I can't
get the tables (real tabular data) to indent correctly
(neither in IE nor in Firefox). (Also, the fact that,
unlike margins, indentation applies only to the first line
of a block isn't appropriate for what I'm doing.)
However, you put me on the right track. Instead of using
margin-left to skooch the whole body to the right and then
using it again on the headings I wanted on the left, I tried
just using margin-left just on the list of all tags that I
want skooched (and letting everything else default to the
left side):
p,h3,table { margin-left: 5%; }
The page is now, as far as I can tell, working perfectly in
both IE and Firefox.
Thanks a lot for the help,
--
Aaron Brown
arundelo @ hotmail.com
|