By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,689 Members | 1,915 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,689 IT Pros & Developers. It's quick & easy.

inline styles

P: n/a
Wondering why my inline style is failing

here is the content.html page that I am calling.
<!-- content4.html -->

<div style"width: 770px; text-align:left;">
<h1Page 4 </h1>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
eirmod tempor</p>
</div>

<!--end content4.html -->
The parent tag is <div align="center"and seems to dominate.
It should be easy enough; can't figure why it is so much trouble.

insight appreciated
Thank You
Kevin

Mar 21 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
rf

"Kevin R" <kr******@sbcglobal.netwrote in message
news:ZN******************************@giganews.com ...
Wondering why my inline style is failing

here is the content.html page that I am calling.
<!-- content4.html -->

<div style"width: 770px; text-align:left;"
<div style="width: 770px; text-align:left;">
Mar 21 '08 #2

P: n/a
Scripsit Kevin R:
Wondering why my inline style is failing
Inline styles are _bad_. Don't do inline styles, mm'kay? Just kidding;
this is now among the least of your problems.
<div style"width: 770px; text-align:left;">
You have syntax error in your HTML markup. Fix it first. Use a validator
if needed.

Then consider CSS issues, like the question "Do I really want to
alienate all users who wish to view my page comfortably in a 600 pixels
wide window?" (600 pixels is pretty much but sometimes convenient when
you wish to devote e.g. an entire half of the screen to a browser
window)
insight appreciated
Insight not needed here. No reason to waste creative potential to
dealing with simple technicalities. Save your cortex for better use, and
use a validator (and manuals or references).

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Mar 21 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.