943,708 Members | Top Members by Rank

Ad:
Jul 22nd, 2008
0

What Editors Create This Code?

Expand Post »
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:

HTML and CSS Syntax (Toggle Plain Text)
  1. <p align="center"><span style="FONT-SIZE: 18pt; COLOR: red">TEST FONT</span></p>

But the normal HTML version doesn't:

HTML and CSS Syntax (Toggle Plain Text)
  1. <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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Cobber is offline Offline
21 posts
since Mar 2005
Jul 22nd, 2008
0

Re: What Editors Create This Code?

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:
html Syntax (Toggle Plain Text)
  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>
Reputation Points: 232
Solved Threads: 137
Practically a Master Poster
buddylee17 is offline Offline
665 posts
since Nov 2007
Jul 22nd, 2008
0

Re: What Editors Create This Code?

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Cobber is offline Offline
21 posts
since Mar 2005
Jul 22nd, 2008
0

Re: What Editors Create This Code?

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Cobber is offline Offline
21 posts
since Mar 2005
Jul 23rd, 2008
0

Re: What Editors Create This Code?

hi
use always for font style, body properties and anything use to again and again css style is good
Reputation Points: 12
Solved Threads: 34
Posting Whiz
sreein1986 is offline Offline
306 posts
since May 2008
Jul 24th, 2008
0

Re: What Editors Create This Code?

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)
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: How do I go about metadata
Next Thread in HTML and CSS Forum Timeline: Navigation





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC