Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2006

    Question How to separate elements inside divs?


    I have this custom html module that I'm building (check attached img below) and what I basically want to do is give each element its own characteristics. For example the img inside would have 0px padding and different text color than the title of the module.

    Here is the css code of the module:
    div.moduletable h3,
    div.moduletable_menu h3,
    div.moduletable_text h3,
    div.moduletable_hilite h3 {
        /*background:transparent url(../images/hdot1.gif) repeat-x scroll center bottom;*/
        font-size: 175%;
        margin: 0 0 5px;
        padding: 2px 0 5px;
        letter-spacing: -1px;
    div.moduletable_hilite {
        margin: 0 0 20px;
        padding: 0 0 5px;
    div.moduletable_menu h3 {
        background: none;
        padding: 0;
    div.moduletable_hilite {
        background: url(../images/grad2.gif) repeat-x top #FA6900;
        padding: 5px 10px;
    div.moduletable_hilite h3 {
        padding: 20px 0 0 0;
    div.moduletable_hilite h3, div.moduletable_hilite a {
        color: #000000;
        background: url(../images/feat-bg.gif) no-repeat bottom left;
        overflow: visible;
        padding-left: 0px;
    I just want to give the feat-bg.gif a padding: 0px; and the image below a padding of 10px. How can I do that?
    Attached Thumbnails Attached Thumbnails featured.gif  

  2. #2
    Join Date
    Nov 2001
    If I read you correctly:

    div.moduletable img {
        padding: 0;
        color: #8A2BE2;
    “Even those who arrange and design shrubberies are under
    considerable economic stress at this period in history.”

Similar Threads

  1. Trouble with divs
    By templatemake in forum Web Design and Content
    Replies: 8
    Last Post: 06-08-2009, 01:30 AM
  2. absolute positioning inside relatively positioned elements?
    By okok in forum Web Design and Content
    Replies: 3
    Last Post: 03-04-2005, 01:54 AM
  3. DIVs Vs. Tables
    By MALdito in forum Web Design and Content
    Replies: 77
    Last Post: 09-11-2004, 07:18 PM
  4. min-width for divs in IE
    By davors in forum Web Design and Content
    Replies: 6
    Last Post: 08-06-2004, 04:15 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts