21294 Posts in 5734 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 813 Views |
-
how can I add automaticalyy a <span></span>

8 October 2009 at 6:58am
Hi
Last question for today :
Is there a way of adding automaticalyy <span></span> to a the h1 h2 h3 etc. styles when using the editor
I can't have my client write them in htmlThank you
-
Re: how can I add automaticalyy a <span></span>

8 October 2009 at 7:46am
Not that I know of. Can you elaborate why you would want to do <span><h1>Header</h1></span>, that doesn't make sense to me.
If you want <h1>Header <span>(other info)</span></h1>, then you should make a class for the Style drop-down menu.
-
Re: how can I add automaticalyy a <span></span>

8 October 2009 at 11:27am
Can you give us an example of the HTML output that you want?
As the previous poster said it doesn't really make sense.
-
Re: how can I add automaticalyy a <span></span>

8 October 2009 at 7:45pm
Hi
I'm trying to be clearer :
Yes it is more like this :
<h1>Header <span>(other info)</span></h1>I need to Place a CSS background image horizontally right on an h2, for this image to be right after the h2 I need span.
here is a tutorial showing this technique :http://veerle.duoh.com/blog/comments/placing_a_css_background_image_horizontally_right_on_an_h2_using_a_span_ele/
I'm very intereted in the way you can make a class for the Style drop-down menu.
Thanks a lot
T
-
Re: how can I add automaticalyy a <span></span>

9 October 2009 at 12:13pm
Since this is a styling issue and not a content issue I'd just call on the power of jQuery. http://jquery.com
Its a great javascript library that can handle all sorts of style-y bells and whistles. Barring that, you could alway add a check box or drop down field to your page type and a function that checks if its clicked/selected then the template will render the span. But like I said since this seems to be style and not a content issue I'd go the jQuery route
| 813 Views | ||
|
Page:
1
|
Go to Top |



