944,188 Members | Top Members by Rank

Ad:
Mar 7th, 2006
0

style tag problem with XP

Expand Post »
I'm new to WindowsXP and the following tag which ran perfectly well in Windows98 doesn't work with XP:

<style type="text/css">
p { text-indent: 1em; margin-top: 0; margin-bottom: 0; }
p.fst { text-indent: 0em; margin-top: 0; margin-bottom: 0; }
</style>

I'd appreciate a simple explanation and remedy - if there's any.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
necko is offline Offline
30 posts
since Mar 2006
Mar 7th, 2006
0

Re: style tag problem with XP

I think it'll be the browser version, not the version of windows, which is causing you problems. That is, IE5 or 5.5 on the 98 machine, and 6 on the XP machine?

There's no real reason why it should stop working.
What code are you using with it, and what do you intend it to look like?
Reputation Points: 54
Solved Threads: 20
Master Poster
DaveSW is offline Offline
765 posts
since Jul 2004
Mar 7th, 2006
0

Re: style tag problem with XP

I understand it's a browser problem, but I also used IE6 on Windows98. Anyway, I use these html pages to build MSebooks (using ReaderWorks) for myself. style tag is generally for making first line of a chapter unindented.
Here's what I do:
<html>
<head>
<title>Pagan and Christian Creeds</title>
<style type="text/css">
p { text-indent: 1em; margin-top: 0; margin-bottom: 0; }
p.fst { text-indent: 0em; margin-top: 0; margin-bottom: 0; }
p.note { text-indent: 0em; margin-top: 3; margin-bottom: 3; }
</style>
</head>

<body>

<p style="page-break-before:always">

<br><br><br><center><font size=2>INTRODUCTORY</font></center><br><br>
<p style=fst align=justify><font size=2>THE SUBJECT</font> of Religious Origins is a ...
<p align=justify>There is also in these matters ...

</body>
</html>

Apparently the browser doesn't see <p style=fst align=justify> tag and the line appears with 1em indent on html page and of course in the ebook.

Thanks a lot for your prompt reply. I don't know if above information is enough to give you a better idea.
Reputation Points: 10
Solved Threads: 0
Light Poster
necko is offline Offline
30 posts
since Mar 2006
Mar 7th, 2006
0

Re: style tag problem with XP

I'm so much ashamed and terribly sorry!
I guess I worked too much.
Reputation Points: 10
Solved Threads: 0
Light Poster
necko is offline Offline
30 posts
since Mar 2006
Mar 7th, 2006
0

Re: style tag problem with XP

Does that mean you've spotted your style should be a class?

We all have those moments...
Reputation Points: 54
Solved Threads: 20
Master Poster
DaveSW is offline Offline
765 posts
since Jul 2004
Mar 7th, 2006
0

Re: style tag problem with XP

Yes, I realized it seconds after I had posted my reply to you. I am really very sorry. Thank you so much for your patience and consideration.
Reputation Points: 10
Solved Threads: 0
Light Poster
necko is offline Offline
30 posts
since Mar 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: New Window
Next Thread in HTML and CSS Forum Timeline: Bookmark function in mozilla firefox





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC