Which way is better?

Please support our HTML and CSS advertiser: 50% Off 6 Months Web Hosting from 1&1. The World's #1 Host!
Reply

Join Date: Aug 2009
Posts: 5
Reputation: Alexancho is an unknown quantity at this point 
Solved Threads: 0
Alexancho Alexancho is offline Offline
Newbie Poster

Which way is better?

 
0
  #1
Nov 7th, 2009
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 11:03 am.
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 9
Reputation: wmsigler is an unknown quantity at this point 
Solved Threads: 0
wmsigler's Avatar
wmsigler wmsigler is offline Offline
Newbie Poster
 
0
  #2
Nov 29th, 2009
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the HTML and CSS Forum


Views: 561 | Replies: 1
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC