![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Applying Class and ID to text other than <p>
I've been using <a class="foo">some text</a> to apply the CSS class .foo to
text where I don't want an automatic space at the end, which <p> adds. But <a> really wants an href in there. I see <span> as an alternative, but it was made for its own purpose as well. In the list of HTML elements, I don't see anything that is specifically made for plain text that is not a paragraph: http://htmlhelp.com/reference/html40/alist.html I don't want to use any of the <h1> - <h6> tags for the same reason. If I don't want to use <p>, what's the best alternative? Thanks, TW And I'm thinking now that what I'm really doing is an ordered list anyway, but I'm still curious. |
|
|||
|
Re: Applying Class and ID to text other than <p>
You can't be serious. This is a joke, isn't it?
-- Walt "tomwood2" <webforumsuser@macromedia.com> wrote in message news:g610rt$ai$1@forums.macromedia.com... > I've been using <a class="foo">some text</a> to apply the CSS class .foo > to > text where I don't want an automatic space at the end, which <p> adds. But > <a> > really wants an href in there. I see <span> as an alternative, but it was > made > for its own purpose as well. In the list of HTML elements, I don't see > anything > that is specifically made for plain text that is not a paragraph: > http://htmlhelp.com/reference/html40/alist.html > > I don't want to use any of the <h1> - <h6> tags for the same reason. > > If I don't want to use <p>, what's the best alternative? > > Thanks, > > TW > > And I'm thinking now that what I'm really doing is an ordered list anyway, > but > I'm still curious. > |
|
|||
|
Re: Applying Class and ID to text other than <p>
On Mon, 21 Jul 2008 03:47:09 +0000 (UTC), "tomwood2"
<webforumsuser@macromedia.com> wrote: >I've been using <a class="foo">some text</a> to apply the CSS class .foo to >text where I don't want an automatic space at the end, which <p> adds. But <a> >really wants an href in there. I see <span> as an alternative, but it was made >for its own purpose as well. In the list of HTML elements, I don't see anything >that is specifically made for plain text that is not a paragraph: >http://htmlhelp.com/reference/html40/alist.html > > I don't want to use any of the <h1> - <h6> tags for the same reason. > > If I don't want to use <p>, what's the best alternative? > > Thanks, > > TW > > And I'm thinking now that what I'm really doing is an ordered list anyway, but >I'm still curious. No total wrong to use <a for general text. use of h1, h2, h3 etc, p for general text, td or th for text in tables, li etc then use css to style it - vary spacing , color, font etc etc you seriously need to read a book like the one below - it would be the best inverstment you ever make if you are doing any web design work. HTML,XHTML & CSS by Elizabeth Castro - very comprehensive, readable and attractive book explains all - ( or most at least ) http://www.amazon.com/XHTML-Sixth-Vi...6632899&sr=8-1 -- ~Malcolm~*... ~* |
|
|||
|
Re: Applying Class and ID to text other than <p>
> where I don't want an automatic space at the end, which <p> adds
Space at the end? You mean below the </p>? That's the default bottom margin on the <p> tag, and it's simple to manage with CSS, as are the default margins on all the other tags you mention. Your proposal is a deeply wrong approach! Those tags are there for a reason. Learn how to manage them! > plain text that is not a paragraph: All 'plain text' must be within <p> tags for your page to validate (that is, unless it is within some other block-type tag like <h#>, or <td>). -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "tomwood2" <webforumsuser@macromedia.com> wrote in message news:g610rt$ai$1@forums.macromedia.com... > I've been using <a class="foo">some text</a> to apply the CSS class .foo > to > text where I don't want an automatic space at the end, which <p> adds. But > <a> > really wants an href in there. I see <span> as an alternative, but it was > made > for its own purpose as well. In the list of HTML elements, I don't see > anything > that is specifically made for plain text that is not a paragraph: > http://htmlhelp.com/reference/html40/alist.html > > I don't want to use any of the <h1> - <h6> tags for the same reason. > > If I don't want to use <p>, what's the best alternative? > > Thanks, > > TW > > And I'm thinking now that what I'm really doing is an ordered list anyway, > but > I'm still curious. > |
|
|||
|
Re: Applying Class and ID to text other than <p>
[q]Originally posted by: Newsgroup User
You can't be serious. This is a joke, isn't it? -- Walt [/q] Well, now I'm embarrassed. I've been cut and pasting for a while and it all seems to work, but I'm obviously confuzzled on a few things. Nothing like jumping into deep water! Tom |
|
|||
|
Re: Applying Class and ID to text other than <p>
I really didn't mean to embarrass you, just get your attention. That seems
to have worked. :-) Malcolm & Murray have given you what I think is the best advice for the moment. I second Malcolm's suggestion of the Castro book. I have it and I think it's an excellent starting point for anyone serious about web design. >>Nothing like jumping into deep water! Yup. Time to get back to the shallow end for a bit and figure things out. Otherwise you may hurt yourself by thrashing about. -- Walt "tomwood2" <webforumsuser@macromedia.com> wrote in message news:g61vv6$31i$1@forums.macromedia.com... > [q]Originally posted by: Newsgroup User > You can't be serious. This is a joke, isn't it? > > -- > > Walt > > [/q] > > Well, now I'm embarrassed. > > I've been cut and pasting for a while and it all seems to work, but I'm > obviously confuzzled on a few things. Nothing like jumping into deep > water! > > Tom > |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|