style tag problem with XP

Thread Solved

Join Date: Mar 2006
Posts: 18
Reputation: necko is an unknown quantity at this point 
Solved Threads: 0
necko's Avatar
necko necko is offline Offline
Newbie Poster

style tag problem with XP

 
0
  #1
Mar 7th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 764
Reputation: DaveSW is on a distinguished road 
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: style tag problem with XP

 
0
  #2
Mar 7th, 2006
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?
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 18
Reputation: necko is an unknown quantity at this point 
Solved Threads: 0
necko's Avatar
necko necko is offline Offline
Newbie Poster

Re: style tag problem with XP

 
0
  #3
Mar 7th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 18
Reputation: necko is an unknown quantity at this point 
Solved Threads: 0
necko's Avatar
necko necko is offline Offline
Newbie Poster

Re: style tag problem with XP

 
0
  #4
Mar 7th, 2006
I'm so much ashamed and terribly sorry!
I guess I worked too much.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 764
Reputation: DaveSW is on a distinguished road 
Solved Threads: 17
DaveSW's Avatar
DaveSW DaveSW is offline Offline
Master Poster

Re: style tag problem with XP

 
0
  #5
Mar 7th, 2006
Does that mean you've spotted your style should be a class?

We all have those moments...
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 18
Reputation: necko is an unknown quantity at this point 
Solved Threads: 0
necko's Avatar
necko necko is offline Offline
Newbie Poster

Re: style tag problem with XP

 
0
  #6
Mar 7th, 2006
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.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC