Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8927459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:13:32+00:00 2026-06-15T08:13:32+00:00

I seem to have got some brain stuck-up. How should I design a CSS

  • 0

I seem to have got some brain stuck-up.

How should I design a CSS to include h1 and p that are classed intro?!

This will target all h1s and ps.

h1, p { ... }

but this

h1, p .intro { ... }

only targets h1 classed as intro, without affecting the *p*s that are classed intro. What’s the syntax for that (so I don’t have to define the following?

h1.intro { ... }
p.intro { ... }

I’ve also tested the following, without success.

h1.intro, p. intro { ... }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:13:32+00:00Added an answer on June 15, 2026 at 8:13 am

    Almost correct. Skip the blank at p.

    h1.intro, p.intro { ... }
    

    When used as the OP pasted it, i.e.

    h1.intro, p .intro { ... }
    

    the interpretor will see a class called intro not connected to a context of anything, i.e. equivalent to the following.

    h1.intro, .intro { ... }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some OpenGL code that behaves inconsistently across different hardware. I've got some
I have a (hopefully) quick question. I've got some stepper boxes. Though really this
I've got some jsp files that are supposed to output xhtml. They seem to
I've got some JavaScript in an ASP.NET page that looks like this: var list
I've got some old legacy code that I'm maintaining (please forgive the naming, this
I seem to have a problem passing some strings on from one form to
I seem to have found a bug in jQuery UI that duplicates dragged elements
i seem to have some trouble installing autopy.h https://github.com/msanders/autopy/#introduction i already tried the installation
I seem to have the exact opposite problem than this question on stopping dock
I have a User, some of which are an employee. This is a one-to-one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.