943,981 Members | Top Members by Rank

Ad:
Nov 7th, 2009
0

Which way is better?

Expand Post »
The task is to create links:

http://i063.radikal.ru/0911/05/84280713bc76.png
It can be done using HTML only. Something like this:
HTML and CSS Syntax (Toggle Plain Text)
  1. <a href="#"><img border="0" src="images/img10.gif" width="9" height="11" alt="" /></a>&nbsp;&nbsp;<a href="#">Read More</a>bsp;&nbsp;&nbsp;&nbsp;
  2. <a href="#"><img border="0" src="images/img11.gif" width="13" height="12" alt="" /></a>&nbsp;&nbsp;<a href="#">Comments (33)</a>
But it also can be done using CSS. For that you have to create classes, write a bit more. Which way is preferable? And in the case of using CSS what is better to use an image as a background or just as an image?
Last edited by Alexancho; Nov 7th, 2009 at 12:03 pm.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Alexancho is offline Offline
5 posts
since Aug 2009
Nov 29th, 2009
0
Re: Which way is better?
It depends.
I would say that if the image is part of the link content (as opposed to link presentation), using HTML tags would make more sense.
If the idea is simply to make part of your website look nice, CSS might make sense.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
wmsigler is offline Offline
9 posts
since Nov 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: One DIV next to two DIVs
Next Thread in HTML and CSS Forum Timeline: div and %





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC