Re: [css-d] align link in a paragraph

2007-03-15 Thread jeffrey morin
On 3/15/07, francky <[EMAIL PROTECTED]> wrote: > > jeffrey morin wrote: > >> When you set a link to display: block, it becomes a block element. > Block > >> elements by default take on the full width of their containing element. > So > >> now, > >> the text within the link is free to slide across t

Re: [css-d] align link in a paragraph

2007-03-15 Thread francky
jeffrey morin wrote: >> When you set a link to display: block, it becomes a block element. Block >> elements by default take on the full width of their containing element. So >> now, >> the text within the link is free to slide across to the right. >> > but when you put text-align : right on a

Re: [css-d] align link in a paragraph

2007-03-15 Thread jeffrey morin
On 3/15/07, Paul Novitski <[EMAIL PROTECTED]> wrote: > > At 3/15/2007 02:33 PM, jeffrey morin wrote: > > > > > > When you set a link to display: block, it becomes a block element. > Block > > > elements by default take on the full width of their containing > element. So > > > now, > > > the text wi

Re: [css-d] align link in a paragraph

2007-03-15 Thread Paul Novitski
At 3/15/2007 02:33 PM, jeffrey morin wrote: > > > > When you set a link to display: block, it becomes a block element. Block > > elements by default take on the full width of their containing element. So > > now, > > the text within the link is free to slide across to the right. > > >bu

Re: [css-d] align link in a paragraph

2007-03-15 Thread Daniel Beardsmore
(Sheesh, why do y'all keep sending replies to both me AND the list? I'm bailing out duplicate mails like a man in a sinking rowboat ;) jeffrey morin wrote: >> When you set a link to display: block, it becomes a block element. Block >> elements by default take on the full width of their containing

Re: [css-d] align link in a paragraph

2007-03-15 Thread Paul Novitski
At 3/15/2007 02:00 PM, Paul Novitski wrote: >For example, if the link is the sole contents of the paragraph, you >could apply {display: block} to the link itself and have it center. At 3/15/2007 02:13 PM, jeffrey morin wrote: > > so here is a test page. the display block worked but like the test

Re: [css-d] align link in a paragraph

2007-03-15 Thread jeffrey morin
Hi Jeffrey, > Instead of text-align, maybe you can float: do you mean something like > this? > > testpage > < > http://home.tiscali.nl/developerscorner/css-discuss/link_right-here.htm> > > Greetings, > francky yeah i could do that too. i was just curious if it could be done another way i

Re: [css-d] align link in a paragraph

2007-03-15 Thread francky
jeffrey morin wrote: > On 3/15/07, Daniel Beardsmore <[EMAIL PROTECTED]> wrote: >> jeffrey morin wrote: >>> hello everyone, >>> i have a box with 4 paragraphs in it. one paragraph has nothing but >>> a link which is 2 words long. my question is can i apply tex-align: >>> right to that link someho

Re: [css-d] align link in a paragraph

2007-03-15 Thread jeffrey morin
> > When you set a link to display: block, it becomes a block element. Block > elements by default take on the full width of their containing element. So > now, > the text within the link is free to slide across to the right. but when you put text-align : right on a paragraph it works.

Re: [css-d] align link in a paragraph

2007-03-15 Thread Daniel Beardsmore
jeffrey morin wrote (but not in the e-mail): > the link is the only thing i want text aligned right. i did the display block > on the link and then applied text-align: right and it worked. but why does > this work? i am not familiar with this technique When you set a link to display: block, it be

Re: [css-d] align link in a paragraph

2007-03-15 Thread jeffrey morin
On 3/15/07, Daniel Beardsmore <[EMAIL PROTECTED]> wrote: > > jeffrey morin wrote: > > so it sounds like there is no way around adding a class to that > paragraph > > then? > > Um ... without seeing your page, I cannot answer that. Right now, your > code goes > along these lines: > > #divBox p a:l

Re: [css-d] align link in a paragraph

2007-03-15 Thread Paul Novitski
At 3/15/2007 01:46 PM, jeffrey morin wrote: >so it sounds like there is no way around adding a class to that paragraph >then? Depends on your markup. Please post the contents of the div so we can see what you're dealing with. For example, if the link is the sole contents of the paragraph, you

Re: [css-d] align link in a paragraph

2007-03-15 Thread Daniel Beardsmore
jeffrey morin wrote: > so it sounds like there is no way around adding a class to that paragraph > then? Um ... without seeing your page, I cannot answer that. Right now, your code goes along these lines: #divBox p a:link {text-align: right} OR #divBox a {text-align: right} The former

Re: [css-d] align link in a paragraph

2007-03-15 Thread Paul Novitski
At 3/15/2007 01:13 PM, jeffrey morin wrote: >i have a box with 4 paragraphs in it. one paragraph has nothing but a link >which is 2 words long. my question is can i apply tex-align: right to that >link somehow without adding another class in my code. > >i tried #divBox p a:link {text-align: right}

Re: [css-d] align link in a paragraph

2007-03-15 Thread jeffrey morin
so it sounds like there is no way around adding a class to that paragraph then? On 3/15/07, Daniel Beardsmore <[EMAIL PROTECTED]> wrote: > > jeffrey morin wrote: > > hello everyone, > > > > i have a box with 4 paragraphs in it. one paragraph has nothing but a > link > > which is 2 words long. my q

Re: [css-d] align link in a paragraph

2007-03-15 Thread Daniel Beardsmore
jeffrey morin wrote: > hello everyone, > > i have a box with 4 paragraphs in it. one paragraph has nothing but a link > which is 2 words long. my question is can i apply tex-align: right to that > link somehow without adding another class in my code. > > i tried #divBox p a:link {text-align: righ