SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot sifuhall's Avatar
    Join Date
    Jun 2001
    Location
    out of the sidehatch
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS reference help please!

    I'm pulling out my hair on this one and am not making in progress.

    I have the following html code:

    Code:
    <div id="block-views-calendar-block_1" class="right-sideblock">
    	<div id="views-calendar-block_1" class="sideblock-inner">
    		<h2 class="title">Upcoming Events</h2>
    	</div>
    </div>
    and I need to reference the inner h2 tag in css, but unfortunately I cannot change the tags nor can I make a change for all h2.title elements.

    I have tried the following with no luck:
    Code:
    div#views-canlendar-block_1 .sideblock-inner h2.title {
    	padding: 0 0 0 20px;
    	background: url(/images/pc/icons/calendar.png) no-repeat;
    }
    
    AND
    
    div#views-canlendar-block_1 h2.title {
    	padding: 0 0 0 20px;
    	background: url(/images/pc/icons/calendar.png) no-repeat;
    }
    
    AND
    
    div#views-canlendar-block_1 h2 {
    	padding: 0 0 0 20px;
    	background: url(/images/pc/icons/calendar.png) no-repeat;
    }
    Any help with is greatly appreciated!

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You have it misspelled in the .css: canlendar should be: calendar.

  3. #3
    SitePoint Zealot sifuhall's Avatar
    Join Date
    Jun 2001
    Location
    out of the sidehatch
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Absolutely right!

    Thanks bpartch!


Bookmarks

Posting Permissions

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