Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > HTML Strict Help Please!

Reply
Thread Tools

HTML Strict Help Please!

 
 
e n | c k m a
Guest
Posts: n/a
 
      07-22-2003
Hello,

Recently I started work on a PHP class that would help me update "News"
messages on web sites easily and everything went perfectly until today. I
kept hearing people say "You should try using HTML 4.01 Strict since you're
starting a new web site!". So I thought why not, I'll give it a go. I'd
never worked with it before but was willing to try it out and hopefully
start a new chapter in my web development education.

Anyway, here's some code that validates under HTML 4.01 Strict [I can't show
you the whole page because I have no server to put it on]. The only problem
with this code is that the news "header" text ["another test"] is put on the
same line as the "article" text ["This is a test..."]. I want it to be to
the right of the date and header separator [" :: "].
How would I do this?

<div style="position: relative; float: left; width: 5%; font-family:
Verdana, Arial, Helvetica, sans-serif; color: red; font-size: small;
font-weight: none; font-style: none; background-color:
none">20/07/2003</div><div> :: </div>

<div style="position: absolute; font-family: Verdana, Arial, Helvetica,
sans-serif; color: blue; font-size: small; font-weight: none; font-style:
italic; background-color: none">another test</div>

<p style="width: 60%; font-family: Verdana, Arial, Helvetica, sans-serif;
color: black; font-size: small; font-weight: none; font-style: none;
background-color: none">This is a test...</p>

Thanks in advance,

Nick.


 
Reply With Quote
 
 
 
 
e n | c k m a
Guest
Posts: n/a
 
      07-22-2003
Nevermind,

I was able to fix it and have it still validate okay - I'm happy now

Thanks anyway.

Nick.


 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Declaring as HTML 4 strict or HTML 5? Gus Richter HTML 0 02-13-2013 02:34 AM
Re: Declaring as HTML 4 strict or HTML 5? Tim Streater HTML 4 02-13-2013 01:00 AM
Re: Declaring as HTML 4 strict or HTML 5? Lewis HTML 0 02-12-2013 11:10 PM
valid html strict KMA ASP .Net 3 04-25-2006 11:38 AM
Changing VS2005 to generate HTML 4.01/Strict instead of XHTML 1.0 Rob Roberts ASP .Net 5 01-20-2006 11:38 PM



Advertisments