HTML
  Home arrow HTML arrow Page 2 - Text on HTML Images: Do it Yourself
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Text on HTML Images: Do it Yourself
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2008-05-14

    Table of Contents:
  • Text on HTML Images: Do it Yourself
  • More Elements
  • PRE and Gradient
  • Image-Map Method

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Text on HTML Images: Do it Yourself - More Elements


    (Page 2 of 4 )


    The TD Element

    The TD element is the Table Data element in a table. The TD element can take background pictures, background color, text, color (for text), tables, the A element for links, Span elements, and other elements. You give background images, text, and links (A elements) to a TD element in the same way that you do for the DIV element.

    The Paragraph Element

    You can have an image whose picture gives more meaning to a paragraph by making that image the background of the paragraph.

    The P element is a block element that is meant to take in text. However, the P element can also take in a background image. Normally the P element begins from the left end of the parent element and ends at the right end of the parent element. So you would need a background picture with a long width. Alternatively, you can have a small image repeated all over the background of the paragraph using CSS. Still, you can reduce the size of the paragraph to fit the size of a smaller image using CSS.

    Note: if you have a background-image in a P element, your result has to be such that the viewer can easily distinguish visually between the background image and the text. There has to be contrast between the text and the background image. If the paragraph does not have any text (meaning it has no width and no height), you may not see the background image.

    You give a background image to a P element similar to the way you do for a DIV element.

    The Header Elements

    The header elements are the H1, H2, H3, H4, H5 and H6 elements. The header elements can receive background images. Here, it is the H1 and H2 elements that are of interest, since the other header elements may be too small to show a background image. The Header element normally goes from the left end of the parent element to the right end of the parent element, taking a whole line. You can give it size and position using CSS. A keyword as the H1 and H2 content has greater value for some search engines than the keyword as ordinary text. You can also turn the text of a Header element into a link using the A element.

    Note: if you have a background image in a Header element, your result has to be such that the viewer can easily distinguish visually between the background image and the text. There has to be contrast between the text and the background image.

    You give a background image to a Header element similar to the way you do for a DIV element.

    More HTML Articles
    More By Chrysanthus Forcha


       · If you find HTML and CSS easy, then go ahead and gain more flexibility by putting...
     

    HTML ARTICLES

    - Using a 3D HTML Table as a Recordset
    - Building a 3D HTML Table
    - Maximizing and Restoring HTML Images: Layer ...
    - Completing Construction of a Database Form w...
    - Maximizing and Restoring Images in a Tabular...
    - Building the Recordset for an HTML Database ...
    - Laying Out a Database Form with HTML
    - Tabular Database Form Functions with HTML
    - Tabular Database Forms with HTML
    - Using the Find Functions for HTML Database F...
    - Sorting for Database Forms with HTML
    - Edit and Other Database Form Functions with ...
    - More Database Form Functions with HTML
    - Database Form Functions with HTML
    - Using the HTML Table Element as a Recordset






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT