Smilodon
01-13-2005, 04:52 PM
Hey!
There's probably an easy answer to this, but I can't seem to find it. I'm using PHP to display a list of articles from a database in a bibliographical form, and trying to use CSS to format them. I want the first line of each entry/paragraph to span the width of the page, but each successive line in the entry/paragraph to be indented. My CSS code is:
p.citation{ margin-left:20; text-indent:-20 }
and I call it with <p class="citation">. This works beautifully for all my plain HTML pages, but not my PHP pages. Do I need to do anything special in my PHP code to get the styles to work?
Oddly enough, other styles work just fine (table widths and HR widths, for example). Just not the paragraph one. I'd think my code was wonky, except that it works on HTML pages just fine.
Well, any help would be appreciated! Thanks!
There's probably an easy answer to this, but I can't seem to find it. I'm using PHP to display a list of articles from a database in a bibliographical form, and trying to use CSS to format them. I want the first line of each entry/paragraph to span the width of the page, but each successive line in the entry/paragraph to be indented. My CSS code is:
p.citation{ margin-left:20; text-indent:-20 }
and I call it with <p class="citation">. This works beautifully for all my plain HTML pages, but not my PHP pages. Do I need to do anything special in my PHP code to get the styles to work?
Oddly enough, other styles work just fine (table widths and HR widths, for example). Just not the paragraph one. I'd think my code was wonky, except that it works on HTML pages just fine.
Well, any help would be appreciated! Thanks!