• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Image Link Underline

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Image Link Underline

This topic is: not resolved

Tagged: css, images, underline

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 8 months ago by Sven Lennartz.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 8, 2015 at 8:22 am #155367
    Sven Lennartz
    Member

    Hallo,

    recently I purchased the Modern Studio Pro theme and the framework (for the first time). Everything is very well. But there is one thing which annoys me much.

    The theme uses CSS border-bottom : 1px for it's linkage. Unfortunately linked images do have also an ugly link beneath. The demo file of the theme does not have any linked images.

    screenshot

    how to get rid of this? I tried what I could and varied some additional CSS, but whatever I tried, the ugly border did not vanish. something like

    a IMG {border : 0px!Important;}
    IMG A:link {border : 0px!Important;}
    IMG A {border-bottom : 0px!Important;}
    etc

    is not working. and yes, I need linked images.
    I know there is a way - as always - because there are some linked images without a border-bottom (in the sidebar). but I couldn'd figure out why.

    I'm pretty desperate about this ...

    Is anyboby out there with an idea?

    http://www.svens-fiction.de
    June 8, 2015 at 10:41 am #155383
    blaster
    Member

    You could either add a class to every anchor that contains an image (i.e., .no-border {border: 0;}) or in this particular case you could actually try .entry-content a > img {vertical-align: middle;} to remove the space below the image to overlap/hide the border.

    Or ideally, you'd just remove the border altogether and use text-decoration instead:
    .entry-content a {border: 0; text-decoration: underline; text-decoration-color: #f7a27f;}
    That is, if you don't mind the current browser support for text-decoration-color or don't care about having the color..

    June 8, 2015 at 11:49 am #155389
    Sven Lennartz
    Member

    Hi Blaster,

    great help!

    I tried what you told me and dropped the border.
    So this is my workaround:

    a {border : 0px;}
    .entry-content a {border: 0; text-decoration: underline;text-decoration-color: #0D4F8B;vertical-align: bottom; }
    .entry-content a:hover {border: 0; text-decoration: none;vertical-align: bottom; }

    The output is not the same as before. But it seems to work. The image bporder is gone. I guess I can live with it 😉

    thank you very much!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble