Solved

CSS - rule definition names

Posted on 2012-04-06
4
232 Views
Last Modified: 2012-04-09
Please help me craft the correct matching CSS rule definition label identifier to be successfully applied to
h4 .punchlist
which governs the styling for the text beginning  "Historic and Scenic Hulls Cove"
on page:
Upscale Vacation Rental House

The goals is to get the text color to be darkblue.

I've tried many combinations of    h4   and   .punchlist   in the rule syntax for:

h4 {
font-weight: bold;
color: darkblue;
}

The use is from WP and cannot be changed, thus i need to find the right CSS rule definition
(which i can easily edit)

thanks!
0
Comment
Question by:willsherwood
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
designatedinitializer earned 250 total points
ID: 37818137
man... you need to get some rest!   :)
You have no "punchlist" class.
What you have is this:

<li class="punchbox"><h4 class=punchtitle>Historic and Scenic Hulls Cove</h4>

Notice the syntax error: the class name must be inside quotes, like this:

<li class="punchbox"><h4 class="punchtitle">Historic and Scenic Hulls Cove</h4>

If you want to style that heading, do it like this:
h4.punchtitle {
font-weight: bold;
color: darkblue;
}

Open in new window

0
 
LVL 16

Assisted Solution

by:HagayMandel
HagayMandel earned 250 total points
ID: 37821436
You are confusing id with a class!!
Change the CSS rules: #punchbox , #punchbox h4, & #punchbox li to .punchbox , .punchbox h4, & .punchbox li (HASH REPLACED WITH DOT), and you'll be fine.
The Hash is targeting an id attribute, and not the class name.
Read the manual.
0
 
LVL 7

Expert Comment

by:designatedinitializer
ID: 37821743
no need for all that: just the change I provided will suffice.
0
 

Author Closing Comment

by:willsherwood
ID: 37823136
thanks for your help!  all sorted out now.  appreciated.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now