× Got a CSS, HTML or webdesign question? Ask it here!

Editing CSS elements on specific pages

1 year 7 months ago - 1 year 7 months ago #16312 by Daniels1
Editing CSS elements on specific pages was created by Daniels1
I am trying to change the shipping information CSS element on the Products page.
I believe it is called "p". When changing it to the desired sentence I discovered that other pages also contain "p" and changed along with it.
How do I change the content of "p" on a specific page without affecting other pages on my site?

I'm new to CSS and I would like to know if there is any way I can localize changes to a specific page I am editing.
This is my problem:
dinamolat.deco-apparel.com/contact

Thanks

Please Log in or Create an account to join the conversation.

1 year 7 months ago #16318 by brenden
Replied by brenden on topic Editing CSS elements on specific pages
Hi there,

<p> in HTML is paragraph text which basically means every bit of text on your site.

Each page has a unique body ID.

If you inspect the HTML of the contact page you will see the ID is #home_contact. So you can target the paragraph text on the /contact page by:
#home_contact p {

}

Cheers,

Senior Product Manager
Wilcom - Sydney, Australia

File Attachment:


The following user(s) said Thank You: Daniels1

Please Log in or Create an account to join the conversation.

Time to create page: 0.108 seconds
Powered by Kunena Forum