WordPress.org

Forums

class attributes (3 posts)

  1. Dot
    Member
    Posted 2 years ago #

    Hello
    I'm looking to select certain parts of my page for my CSS: am I right that if that part has an existing element (for example, the header image) I need to know the name of this? If so, how do I find it out please?
    Diane

  2. s_ha_dum
    Member
    Posted 2 years ago #

    You need to know the class names, or id names, or both, and maybe the name of the tag. You can get that by reading the PHP sourceb ut it tends to be easier to look at the generated source of the web page itself. You can do that is a couple of different ways.

    Open the page in a web browsers, then CTRL+U. Search for your element. That is quick and I believe it works in all browsers.

    The best thing to do though is to install the FireFox extension FireBug then open the page, right click on your element and select "Inspect with FireBug". Chrome also has an "inspect" feature.

  3. Dot
    Member
    Posted 2 years ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.