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.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-21-2008, 04:47 AM
tomwood2
 
Posts: n/a
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.

Reply With Quote
  #2 (permalink)  
Old 07-21-2008, 05:59 AM
Walt F. Schaefer
 
Posts: n/a
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.
>



Reply With Quote
  #3 (permalink)  
Old 07-21-2008, 10:36 AM
Malcolm _
 
Posts: n/a
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~*...
~*
Reply With Quote
  #4 (permalink)  
Old 07-21-2008, 01:10 PM
Murray *ACE*
 
Posts: n/a
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.
>


Reply With Quote
  #5 (permalink)  
Old 07-21-2008, 01:37 PM
tomwood2
 
Posts: n/a
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

Reply With Quote
  #6 (permalink)  
Old 07-21-2008, 02:54 PM
Walt F. Schaefer
 
Posts: n/a
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
>



Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:54 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Cheap Loan | Credit Cards | College Degrees | Salvage yard | Free Ringtones



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114