This content has been marked as final.
Show 10 replies
-
1. Re: Formatting Links in Libarary Item
Newsgroup_User Nov 14, 2008 11:06 AM (in response to andrewmcgibbon)The markup to format the links would have to be already in the parent page
(the one into which the Library item is inserted). Get it?
--
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
==================
"andrewmcgibbon" <webforumsuser@macromedia.com> wrote in message
news:gfkhmr$h3f$1@forums.macromedia.com...
> How do you format links (hover, active, etc.) that appear in a library
> item? I
> have put inline styles into the body of the libarary page, but I found
> that it
> was overwriting the link styles of the style sheet attached to the page
> where
> the libarary item is inserted.
>
> Would anyone be so kind as to explain the best way to control this?
>
> Many thanks,
> Andy
>
-
2. Re: Formatting Links in Libarary Item
Newsgroup_User Nov 14, 2008 11:12 AM (in response to andrewmcgibbon)Use a CSS style (either a stylesheet attached to the page or in the head,
not inline) to control it.
andrewmcgibbon wrote:
> How do you format links (hover, active, etc.) that appear in a
> library item? I have put inline styles into the body of the libarary
> page, but I found that it was overwriting the link styles of the
> style sheet attached to the page where the libarary item is inserted.
>
> Would anyone be so kind as to explain the best way to control this?
>
> Many thanks,
> Andy
-
3. Re: Formatting Links in Libarary Item
Newsgroup_User Nov 14, 2008 11:22 AM (in response to andrewmcgibbon)You wouldn't attach a stylesheet to a Library item. NONONONONO.
And it doesn't have a <head> (or it shouldn't).
--
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
==================
"Mad Dog" <md@maddogproductions-remove.com> wrote in message
news:gfkijo$i51$1@forums.macromedia.com...
> Use a CSS style (either a stylesheet attached to the page or in the head,
> not inline) to control it.
>
> andrewmcgibbon wrote:
>> How do you format links (hover, active, etc.) that appear in a
>> library item? I have put inline styles into the body of the libarary
>> page, but I found that it was overwriting the link styles of the
>> style sheet attached to the page where the libarary item is inserted.
>>
>> Would anyone be so kind as to explain the best way to control this?
>>
>> Many thanks,
>> Andy
>
>
-
4. Re: Formatting Links in Libarary Item
Newsgroup_User Nov 14, 2008 11:30 AM (in response to andrewmcgibbon)Murray *ACE* wrote:
> You wouldn't attach a stylesheet to a Library item. NONONONONO.
But you can attach a design time style sheet to the Library item (.lbi file): Format -> CSS Styles -> Design Time
I think that part of the issue with the OP is that they would also need to "scope" the code in the Library item (perhaps by adding an ID to a wrapper div) so that styles that are to be applied to the library item contents do not overwrite the styles when viewed within the pages that the library item resides.
--
Danilo Celic
| http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert -
5. Re: Formatting Links in Libarary Item
andrewmcgibbon Nov 14, 2008 11:46 AM (in response to andrewmcgibbon)Danilo, could you expand on what you said about the adding a div tag to the text in the library item? I am assuming that this is where you would reference the style to be used?
Thank you all so much for your help.
Andy -
6. Re: Formatting Links in Libarary Item
Newsgroup_User Nov 14, 2008 12:07 PM (in response to andrewmcgibbon)If the styles in the main pages are in an external linked .css file, then
attach a "design time" stylesheet to the library item.
Then the styles from the external css file will show and be usable/editable
when you have the .lbi file open.
--
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/
-
7. Re: Formatting Links in Libarary Item
Newsgroup_User Nov 14, 2008 12:11 PM (in response to andrewmcgibbon)Huh? The rules that would cascade into the Library item must already be
present in the parent page. You would not need to scope anything.
--
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
==================
"danilocelic AdobeCommunityExpert" <danilo@shimmerphase.com> wrote in
message news:gfkjjv$jfr$1@forums.macromedia.com...
> Murray *ACE* wrote:
>> You wouldn't attach a stylesheet to a Library item. NONONONONO.
>
> But you can attach a design time style sheet to the Library item (.lbi
> file): Format -> CSS Styles -> Design Time
>
> I think that part of the issue with the OP is that they would also need to
> "scope" the code in the Library item (perhaps by adding an ID to a wrapper
> div) so that styles that are to be applied to the library item contents do
> not overwrite the styles when viewed within the pages that the library
> item resides.
>
> --
> Danilo Celic
> | http://blog.extensioneering.com/
> | WebAssist Extensioneer
> | Adobe Community Expert
-
8. Re: Formatting Links in Libarary Item
Newsgroup_User Nov 14, 2008 12:31 PM (in response to andrewmcgibbon)Sorry if I wasn't clear. Of course you wouldn't (and can't). You'd attach if
to the document(s) that call(s) the Library Item.
sheesh!
Murray *ACE* wrote:
> You wouldn't attach a stylesheet to a Library item. NONONONONO.
>
> And it doesn't have a <head> (or it shouldn't).
>
>
> "Mad Dog" <md@maddogproductions-remove.com> wrote in message
> news:gfkijo$i51$1@forums.macromedia.com...
>> Use a CSS style (either a stylesheet attached to the page or in the
>> head, not inline) to control it.
>>
>> andrewmcgibbon wrote:
>>> How do you format links (hover, active, etc.) that appear in a
>>> library item? I have put inline styles into the body of the
>>> libarary page, but I found that it was overwriting the link styles
>>> of the style sheet attached to the page where the libarary item is
>>> inserted. Would anyone be so kind as to explain the best way to control
>>> this?
>>>
>>> Many thanks,
>>> Andy
-
9. Re: Formatting Links in Libarary Item
Newsgroup_User Nov 14, 2008 12:42 PM (in response to andrewmcgibbon)Murray *ACE* wrote:
> Huh? The rules that would cascade into the Library item must already be
> present in the parent page. You would not need to scope anything.
One of the problems mentioned in the OP was that the styles they were using for the library item were overwriting the link styles for the completed page. I took that to mean that the links in the library item are supposed to be styled differently than the rest of the page. If that is the case (could use some clarification from the OP), then adding a wrapper div (or iding an existing container) and then specify the links styles similar to the following would achieve that goal:
#myLibraryItem a:link{
text-decoration:none;
}
#myLibraryItem a:hover{
text-decoration:underline
}
Does that make more sense?
--
Danilo Celic
| http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert -
10. Re: Formatting Links in Libarary Item
Newsgroup_User Nov 14, 2008 12:59 PM (in response to andrewmcgibbon)Yes.
--
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
==================
"danilocelic AdobeCommunityExpert" <danilo@shimmerphase.com> wrote in
message news:gfkns8$ope$1@forums.macromedia.com...
> Murray *ACE* wrote:
>> Huh? The rules that would cascade into the Library item must already be
>> present in the parent page. You would not need to scope anything.
>
> One of the problems mentioned in the OP was that the styles they were
> using for the library item were overwriting the link styles for the
> completed page. I took that to mean that the links in the library item are
> supposed to be styled differently than the rest of the page. If that is
> the case (could use some clarification from the OP), then adding a wrapper
> div (or iding an existing container) and then specify the links styles
> similar to the following would achieve that goal:
>
> #myLibraryItem a:link{
> text-decoration:none;
> }
>
> #myLibraryItem a:hover{
> text-decoration:underline
> }
>
>
> Does that make more sense?
>
> --
> Danilo Celic
> | http://blog.extensioneering.com/
> | WebAssist Extensioneer
> | Adobe Community Expert

