PC Review


Reply
Thread Tools Rate Thread

Cleaning up html code

 
 
John Smith
Guest
Posts: n/a
 
      2nd May 2004
Hello again.

I was looking at my tables in the html view and realizing that every darned
row has its own set of tags i.e: border-style, align, valign, bgcolor etc.
etc. This is silly because most of the cells are formatted idenically;
although there are a few header type rows with different attributes in the
middle of the tables.

Is there an easy way to clean this all up? I'd like to assign the tags to
groups of rows, rather than having them tagged individually. (I'd probably
flunk webdesign-school if anyone looked at my html. Its ok though cuz I
never went to webdesign school!)

(I do have a .css sheet set up and am wondering if I should figure out how
to use it for the rows.)

Do you have a quick idea for a tool I could use or is it time for me to pull
out the handy dandy manual yet again???

Thanks for all your help.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.672 / Virus Database: 434 - Release Date: 4/28/2004


 
Reply With Quote
 
 
 
 
Steve Easton
Guest
Posts: n/a
 
      2nd May 2004
If each row is an individual table they will each have their own style and attribute tags.
If you use a table that has cells, in other words create a 1 column multiple row table,
then the rows or ( also called cells ) will automatically inherit the properties that are
set in the opening table tag.

To apply your css to the rows, you need to create a class in your css:
..myclass as an example and set your style attributes within it.( it can have any name )

..myclass{
font-color: red;
border-color: green;
}

and then apply the class to the cells by adding class="myclass" to the opening <td
class="myclass"> tag for the cell.

hth
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

"John Smith" <(E-Mail Removed)> wrote in message
news:MZKdnX1aYJ8XuwjdRVn-(E-Mail Removed)...
> Hello again.
>
> I was looking at my tables in the html view and realizing that every darned
> row has its own set of tags i.e: border-style, align, valign, bgcolor etc.
> etc. This is silly because most of the cells are formatted idenically;
> although there are a few header type rows with different attributes in the
> middle of the tables.
>
> Is there an easy way to clean this all up? I'd like to assign the tags to
> groups of rows, rather than having them tagged individually. (I'd probably
> flunk webdesign-school if anyone looked at my html. Its ok though cuz I
> never went to webdesign school!)
>
> (I do have a .css sheet set up and am wondering if I should figure out how
> to use it for the rows.)
>
> Do you have a quick idea for a tool I could use or is it time for me to pull
> out the handy dandy manual yet again???
>
> Thanks for all your help.
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.672 / Virus Database: 434 - Release Date: 4/28/2004
>
>



 
Reply With Quote
 
Arnold Gao[MSFT]
Guest
Posts: n/a
 
      3rd May 2004
Hi John,

Some information about CSS:
http://www.w3.org/Style/CSS/
http://www.w3schools.com/css/default.asp

Hope it helps.

Sincerely,

Arnold Gao

Microsoft Partner Online Support


Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via
your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and
confers no rights.

 
Reply With Quote
 
Arnold Gao[MSFT]
Guest
Posts: n/a
 
      12th May 2004
Hi John,

Just a supplement.

Please try the HTML rules for this. On the find and replace dialog got to
the "HTML tags". Depending on how your page is set you might need to do
this on two operations. You can do something like this: Find tag <TR>,
Replace action <Remove attribute> (or set attribute) and then press the
HTML Rules button. On the HTML rules dialog set the conditions you want for
the TRs, for instance "With attribute STYLE equals ANY VALUE". You can then
use the same method to format them all equal or to set a class to them.

Hope it helps.

Sincerely,

Arnold Gao

Microsoft Partner Online Support


Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via
your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and
confers no rights.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Regular expression for cleaning html safely Steve B. Microsoft ASP .NET 1 4th Sep 2006 05:34 PM
Cleaning html-code mogens Microsoft Access Reports 2 27th Oct 2005 06:48 AM
Html code cleaner - Powerful HTML Code Compression Tool heren Microsoft ASP .NET 1 14th Sep 2005 01:39 PM
Outlook 2002 - sending HTML code in body of mail, shown as HTML code on receiver end. Trygve Lorentzen Microsoft Outlook 1 20th Apr 2005 11:52 AM
HTML code warnings in asp.net html code view Craig Kenisston Microsoft ASP .NET 3 7th Oct 2004 05:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:23 PM.