![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
ol li img src="Img1.jpg" alt="Image 1" class="Product"/ p>Product 1</p a href="/Product/Download/1">Brochure</a /li li> ... </li /ol |
#3
| |||
| |||
|
|
Hello, I have the following markup: ol li img src="Img1.jpg" alt="Image 1" class="Product"/ p>Product 1</p a href="/Product/Download/1">Brochure</a /li li> ... </li /ol How can I make the link and text to be on the right side of the image? Thanks, Miguel |
#4
| |||
| |||
|
|
style type="css" .product img {float:left;} /style ol li p class="product"><img src="img1.jpg" alt="short product description" Product 1 <a href=/product/download/1">Brochure</a></p /li /ol |
#5
| |||
| |||
|
|
In article c65b831b-128a-4319-9d33-62cbecb97de5...oglegroups.com>, shapper <mdmoura (AT) gmail (DOT) com> wrote: ol li img src="Img1.jpg" alt="Image 1" class="Product"/ p>Product 1</p a href="/Product/Download/1">Brochure</a /li li> ... </li /ol Remove the P tags |
#6
| |||
| |||
|
|
Gazing into my crystal ball I observed shapper <mdmoura (AT) gmail (DOT) com writing in news:c65b831b-128a-4319-9d33-62cbecb97de5 @a7g2000yqk.googlegroups.com: Hello, I have the following markup: ol li img src="Img1.jpg" alt="Image 1" class="Product"/ p>Product 1</p a href="/Product/Download/1">Brochure</a /li li> ... </li /ol How can I make the link and text to be on the right side of the image? Thanks, Miguel style type="css" .product img {float:left;} /style ol li p class="product"><img src="img1.jpg" alt="short product description" Product 1 <a href=/product/download/1">Brochure</a></p /li /ol By the way, if the brochure is in PDF format, it would be nice to indicate such, eg: a.pdf {background-image:url("pdf.gif"); background-repeat:no-repeat; background-position:right; padding-right:15px} or a href="/product/download/1">Brochure</a> (pdf} |
#7
| |||
| |||
|
|
In article <doraymeRidThis-34E12B.13063003072009 (AT) news (DOT) albasani.net>, dorayme <doraymeRidThis (AT) optusnet (DOT) com.au> wrote: In article c65b831b-128a-4319-9d33-62cbecb97de5...oglegroups.com>, shapper <mdmoura (AT) gmail (DOT) com> wrote: ol li img src="Img1.jpg" alt="Image 1" class="Product"/ p>Product 1</p a href="/Product/Download/1">Brochure</a /li li> ... </li /ol Remove the P tags Why? |
|
In the DTD, <li> is ENTITY %flow Doesn't that mean <li> is a block element that can contain both inline and block elements? I hardly ever use lists (except for navigation) so I do not have experience of using them for more than a word or two of content. |
#8
| |||
| |||
|
|
/* Use attribute selectors to target the extension of a file name. Pad the link right. Then put an icon in the background of the link */ a[href$=".pdf"] { background: url(images/pdf_icon.png) right center no-repeat; padding-right: 20px; } |
![]() |
| Thread Tools | |
| Display Modes | |
| |