HighDots Forums  

inline styles

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss inline styles in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kevin R
 
Posts: n/a

Default inline styles - 03-20-2008 , 07:27 PM






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;">
<h1> Page 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


Reply With Quote
  #2  
Old   
rf
 
Posts: n/a

Default Re: inline styles - 03-20-2008 , 07:43 PM







"Kevin R" <kraleigh (AT) sbcglobal (DOT) net> wrote

Quote:
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;"




Reply With Quote
  #3  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: inline styles - 03-21-2008 , 06:14 AM



Scripsit Kevin R:

Quote:
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.

Quote:
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)

Quote:
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/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.