• Resolved kholoshian

    (@kholoshian)


    Hi Joe,

    Firstly, awesome plugin – a real masterpiece! ??

    I’m having trouble getting my head around the AN CSS – i’ve managed to change some elements but can’t fix others. I want to be able to do the following on this page; https://www.sdmotorcycles.co.uk/stock/

    1. centre both the ‘price’ and ‘view item’ elements
    2. make the red background on the price go the full width
    3. Stop the titles from overwriting other titles (you can see this further down on some items)

    Hope you can help if it just a bit ??

    Many thanks in advance
    Mike

    https://www.ads-software.com/plugins/auction-nudge/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Joe

    (@morehawes)

    Hi Mike,

    Thanks for reaching out. The following CSS should achieve this:

    #auction-nudge-items .an-item .an-title a {
        overflow-wrap: break-word;
    }
    #auction-nudge-items .an-item .an-view,
    #auction-nudge-items .an-item .an-amount {
        width: 96%;
        text-align: center;
    }

    I hope this helps.

    Joe

    Thread Starter kholoshian

    (@kholoshian)

    Hey Joe,

    Thanks for the really quick response. I put those changes in place and ALL but one worked.

    #auction-nudge-items .an-item .an-title a {
    overflow-wrap: break-word;
    }
    Tried this a few times with the odd variation but no joy – still getting the titles overflowing into the next ad.

    Any ideas?

    Thanks again
    Mike

    Thread Starter kholoshian

    (@kholoshian)

    Also tried

    word-wrap: break-word;
    word-break: break-word;

    no joy ??

    Thread Starter kholoshian

    (@kholoshian)

    Interestingly ‘overflow-wrap: break-word;’ appears to work in Chrome but not IE or Firefox. In chrome it does have the unfortunate side effect of throwing the ads out of alignment – probably due to the height of the container for the title.

    Back to the drawing board i guess!

    Plugin Author Joe

    (@morehawes)

    Hi Mike,

    This is an odd one, but I eventually pinpointed the issue. I recommend removing overflow-wrap: break-word and instead adding the following:

    #auction-nudge-items .an-item .an-title a {
        white-space: normal;
    }

    Hopefully this should do the trick.

    Joe

    Thread Starter kholoshian

    (@kholoshian)

    Hi Joe,

    Looks like you cracked it. Last question i prmoise. Is there any way of increasing the height of the container for the title so that if it needs to wrap it wont throw the alignment out. You’ll see what i mean if you look at the page https://www.sdmotorcycles.co.uk/stock/.

    Mind you saying that I’m guessing that’s only going to increase the whitespace between the title and the image that is already quite large.

    Thanks in advance
    Mike

    Thread Starter kholoshian

    (@kholoshian)

    Posted a review for you – well earned ??

    Plugin Author Joe

    (@morehawes)

    Hi Mike,

    Setting the title height to a fixed amount should resolve this:

    #auction-nudge-items div.an-item div.an-title {
        height: 40px;
    }

    As for the gaps between the images and text, this is to accommodate product images in portrait orientation. If all of your images are going to be landscape, like they are currently then you could decrease this gap like so:

    #auction-nudge-items .an-item .an-image,
    #auction-nudge-items .an-item .image-container a,
    #auction-nudge-items .an-item .image-container {
        height: 220px !important
    }

    You may need to experiment with different values.

    Good luck and thanks for the review!

    Joe

    Thread Starter kholoshian

    (@kholoshian)

    Joe, what can I say m8 – you are a CSS god. Absolutely perfect – just what i needed!!

    Thank you so much.

    Mike

    PS You are very welcome for the review, just hope you pick up a bit of affiliate commission from our bikes when they sell – we shift alot.

    Plugin Author Joe

    (@morehawes)

    Happy to help. I hope Auction Nudge helps you get some extra traffic to your eBay listings.

    Marking this topic as resolved.

    Joe

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘CSS Help’ is closed to new replies.