Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to create a mouseover for posts

  • This topic is empty.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #43162
    dani555
    Participant

    Hi everybody
    How to create a mouseover for posts
    [My Site](http://www.retete-super.ro “”)
    I have 10 posts on the front page color #ECF0F4
    I want to change the color when you put your mouse over the post in color #99ADC2
    Thank you!

    #127050
    Kitty Giraudel
    Participant

    What about the :hover pseudo-class?

    #127051
    dani555
    Participant

    I want to do mouseover for posts
    exactly as in the example
    [Example](http://http://www.daikin.ro/support-and-manuals/index.jsp “”)

    #127053
    Paulie_D
    Member

    Link doesn’t work AND you don’t seem to have listened to @HugoGiraudel

    #127054
    dani555
    Participant
    #127055
    Paulie_D
    Member

    We know what it looks like…have you considered the suggestion from @HugoGiraudel ?

    Do you know how to apply it?

    I’m guessing something like…

    .art-post-inner:hover {
    background: insert your color;
    }

    #127057
    Alen
    Participant

    .art-post-body:hover {
    background-color: #99ADC2;
    }

    You could use that, but you are using :before :after to add background images (rounded corners). I would suggest refactoring the code and using CSS instead of images… then it would be much easier to apply hover fx.

    Hope that helps,
    Alen

    #127062
    Paulie_D
    Member

    @AlenAbdula Yeah…that was my next thing… :)

    #127087
    dani555
    Participant

    Hi everyone,
    We have added the following code
    The code is:
    .art-post-body:hover {
    background-color: #99ADC2;
    }
    I see a rectangle instead of a rounded rectangle
    You may have to add code?
    Thank you!

    .art-post
    {
    max-width:974px;
    margin: 7px;
    }
    .art-post-body
    {
    padding:14px;
    min-width:2px;
    min-height:2px;
    }
    .art-post:before, .art-post:after
    {
    content: url(‘images/post_t.png’);
    font-size: 0;
    background-image: url(‘images/post_b.png’);
    }
    .art-post:after{
    clip:rect(auto, auto, auto, 959px);
    }
    .art-post:before,.art-post-body:before{
    right:15px;
    }
    .art-post-body:after{
    width: 15px;
    top:15px;
    bottom:15px;
    background-image:url(‘images/post.png’);
    }
    .art-post-body:hover {
    background-color: #99ADC2;
    }
    .art-post-body:before{
    top:15px;
    bottom:15px;
    background-image:url(‘images/post.png’);
    }

    #127116
    dani555
    Participant

    Does anyone know what needs to be changed?

    #127157
    Paulie_D
    Member

    You would have to stop using the images for the borders/border-radius….are you willing to do that?

    #127161
    dani555
    Participant

    Otherwise you can’t do
    Thank you

    #127162
    Paulie_D
    Member

    >Otherwise you can’t do Thank you

    Nope…you are using background images for the backgrounds and borders.

    I suppose you could use different images in the hover states but, frankly, there is nothing there that actually **requires** images.

    The borders / border radius and backgrounds can all be replicated with CSS as far as I can see. The radius would not show below IE9 but that isn’t a big loss.

Viewing 13 posts - 1 through 13 (of 13 total)
  • The forum ‘CSS’ is closed to new topics and replies.