• Resolved hansconings

    (@hansconings)


    Hi there,

    I would like to create more space for the ‘more info box’. At the moment, the text box is very narrow. By consequence, there are only a few words per line that are shown.

    Is it possible to make the text box wider with custom CSS?

    I am currently developing a website: http://www.preparedmind.eu/website2017/. You can find the image on the home page.

    Thanks!

    Hans

    • This topic was modified 9 years, 1 month ago by hansconings.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Natalie MacLees

    (@nataliemac)

    Hello Hans!

    Yes, you can adjust that with custom CSS. The selector to use is:

    .layout-left .hotspots-image-container

    which controls the width of the image area. Making it smaller will make the more info area bigger. By default, the image area is 100% wide on small screens, 66% wide on screens that are at least 600 pixels wide, and 75% on screens at least 900 pixels wide. Don’t forget to include media queries when you’re adjusting the width.

    We have a helpful article on adding custom CSS to your site here: https://wpdrawattention.com/document/customizing-draw-attention-css/

    Let us know if you need any further help with this.

    Thread Starter hansconings

    (@hansconings)

    Hi Natalie,

    Thanks for your help!

    I have added this CSS in the Simple Custom CSS plugin, but it isn’t working so far. Any idea why?

    .layout-left .hotspots-image-container {
      max-width: 60% !important;
    }
    Plugin Author Natalie MacLees

    (@nataliemac)

    Hi Hans!

    I went to look at your site to troubleshoot, but I can’t find the Draw Attention image on the page. Has it moved elsewhere? Can you point me to a page with the image so I can take a look?

    –Natalie

    Thread Starter hansconings

    (@hansconings)

    Hi Natalie,

    Oh sorry, I moved it to: http://www.preparedmind.eu/website2017/twin-2/

    Hans

    Plugin Author Natalie MacLees

    (@nataliemac)

    Hi Hans!

    It looks like it needs to be width, not max-width to override the default CSS. Don’t forget to include media queries also as on small screens, you probably want the image to be 100% width – otherwise it gets so small, it’s impossible to tap the active areas with a finger.

    –Natalie

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘More space for’ is closed to new replies.