| | |
style tag problem with XP
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
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.
<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.
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?
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?
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.
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.
Does that mean you've spotted your style should be a class?
We all have those moments...
We all have those moments...
![]() |
Similar Threads
- Style properties are ignored by Mozilla browser... (ASP.NET)
- H1 tag problem. (Site Layout and Usability)
- Blurred bands in laptop display (Monitors, Displays and Video Cards)
Other Threads in the HTML and CSS Forum
- Previous Thread: New Window
- Next Thread: Bookmark function in mozilla firefox
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7





