+ Reply to Thread
Results 1 to 5 of 5

Thread: How to stop an img picking up CSS style?

  1. #1
    Senior Member deepsouth's Avatar
    Join Date
    Jan 2011
    Location
    Van Diemen's Land
    Posts
    977

    How to stop an img picking up CSS style?

    How can I stop some images picking up my img CSS style? I have some in the navbar right that don;t pick it up, but I need to stop it happening in some specific e-commerce link images in pages. Just can't see how to give them a different class.

    Thoughts?

  2. #2
    Junior Member
    Join Date
    Jan 2012
    Posts
    23
    Hi -
    If I understand what you're asking...and assuming the image(s) in question are in a blog post or page... can you:
    edit the page/post > click the image in question > select the 'edit image' graphic, then in the new window that opens, switch over to the the 'advanced settings' tab and assign your css class.

    Would that work?

    Brad

  3. #3
    Senior Member
    Join Date
    May 2011
    Location
    Miami, FL
    Posts
    310
    Can you send a link to page?

    I recently found the catalyst post/page custom css box quite useful to add a "borderless" class to post wrappers on particular posts that then allowed me to target the img tags for featured thumbs in those post via css... no need for even opening wp image editor!

  4. #4
    Senior Member deepsouth's Avatar
    Join Date
    Jan 2011
    Location
    Van Diemen's Land
    Posts
    977
    Thanks all. Page is offline atm. From this I added a custom clkass direct into the img src class="noborder", but then had no luck targeting it. Hmmm

  5. #5
    Senior Member
    Join Date
    May 2011
    Location
    Miami, FL
    Posts
    310
    Must be a CSS nesting / complexity override... did you try duct taping it with a good ole "!important"?

+ Reply to Thread

Posting Permissions

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