element for image
What the best element to use on an image?
<p class="pictureperfect"> or <img class="pictureperfect" alt=""> or etc...
to get the effect i think you're looking for, you should use a block-level element such as a <DIV>
WARNING: Use code provided at your own risk!
as the person stated above a div is a nice choice
but you can choose anything really...
even inline-level elements.
to inline-level elements to have them behave like a block-level element.
but a paragraph tag is a bad choice anyway.
Well actually, if that's a submit button (which it looks like it is), you should use an input submit image:
Also, if it's just a simple little image like that and not a background image (part of the layout), it's fine to just use an <img /> tag with an appropriate ALT attribute.
<input type="image" src="../images/searcharrow.gif" value="Submit" alt="Submit" />
Windows XP SP2 - theme: Thallos
AMD Athlon 64 X2 4600+ | ASUS M2N32-SLI Deluxe | 2 * 1024 PC2-6400 Mushkin DDR2-800 | eVGA GeForce 6800XT 256MB | Creative Sound Blaster X-FI Music
5 * 320GB Seagate Barracuda SATA-II 3Gb/s in RAID 5 | Lite-On 16x DVD-RW | Mitsumi 7-in-1 Floppy drive and card reader
Samsung SyncMaster 204B 20" TFT LCD | Logitech G15 Keyboard | Logitech G7 Mouse | Seasonic PC160SK Headset
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)