RSS Forums RSS
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 450 | Replies: 5 | Solved
Reply
Join Date: Mar 2005
Location: Australia
Posts: 21
Reputation: Cobber is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Cobber Cobber is offline Offline
Newbie Poster

What Editors Create This Code?

  #1  
Jul 22nd, 2008
Hi,

Once again I come to Dani's forum after days of getting nowhere myself.

I am using the "htmlarea" editor with one of my scripts.

A CSS file (probably) is overriding the changes to font sizes I change in the editor unless they are coded in a certain way.

For example this code works:

<p align="center"><span style="FONT-SIZE: 18pt; COLOR: red">TEST FONT</span></p>

But the normal HTML version doesn't:

<p align="center"><font color="#ff0000" size="5">TEST FONT</font></p>

I have tried many different WYSIWYG editors, Frontpage and Word but none create the code in the first example.

Can anyone tell me the "language" the first example is written in and where I can find an editor that will create that sort of code automatically as you type?

While I can change it myself, I need my customers to be able to use an offline editor without having to know how to code it that way.

Thanks in advance,

Graham
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Location: Arkansas
Posts: 421
Reputation: buddylee17 will become famous soon enough buddylee17 will become famous soon enough 
Rep Power: 3
Solved Threads: 82
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro in Training

Re: What Editors Create This Code?

  #2  
Jul 22nd, 2008
These are inline styles. Dreamweaver will do something similar. It will create a class for the element and embed the styles in the head of the document. This will look like:
  1. <style type="text/css">
  2. <!--
  3. .style1 {
  4. font-size: 18px;
  5. color: #FF0000;
  6. }
  7. -->
  8. </style>
  9. </head>
  10.  
  11. <body>
  12. <p><span class="style1">TEST FONT</span></p>
Lost time is never found again.
- Benjamin Franklin
Reply With Quote  
Join Date: Mar 2005
Location: Australia
Posts: 21
Reputation: Cobber is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Cobber Cobber is offline Offline
Newbie Poster

Re: What Editors Create This Code?

  #3  
Jul 22nd, 2008
Thanks Buddylee,

I can see now that I need to use an editor with CSS support, but I want one that customers can download and use on their own computer.

Dreamweaver is fine for the webmaster, but I need something small and preferably free (or very cheap) customers can use.

Every one I've tried either doesn't do the job or does not have a WYSIWYG feature.

Regards,

Graham
Reply With Quote  
Join Date: Mar 2005
Location: Australia
Posts: 21
Reputation: Cobber is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Cobber Cobber is offline Offline
Newbie Poster

Re: What Editors Create This Code?

  #4  
Jul 22nd, 2008
Buddylee has unknowingly guided me to the solution.

Instead of using the dropdown font sizes in htmlarea, I should be using the dropdown "heading" sizes to change font sizes. There are 6 of them already there which will do the job nicely.

Changing text colour and background colour still works on the different sizes.

The answer was there all the time, I just couldn't see it!

But if anyone does know of an editor customers can use to create their page offline, I would still appreciate knowing.

Thanks,

Graham
Reply With Quote  
Join Date: May 2008
Location: Hyderabad, India
Posts: 261
Reputation: sreein1986 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 31
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz in Training

Re: What Editors Create This Code?

  #5  
Jul 23rd, 2008
hi
use always for font style, body properties and anything use to again and again css style is good
Thanx,
Sreekanth

www.saap.in
if you problem solved add me as a reputation and mark it mark as solved
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: What Editors Create This Code?

  #6  
Jul 24th, 2008
You are using deprecated codes. Editors tend to ignore them.

The following are deprecated:
the font tag
align=
color=
size=
bgcolor=
center (except as an argument for text-align)
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 8:09 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC