#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    1
    Rep Power
    0

    How to fix hyperlink to css file image using html


    Hi,

    I need some help with css code and html.
    This is my css code.

    }

    .ca-item-1 .ca-icon{
    background-image:url(../../images/images/images/uni3.jpg);
    }


    And this is my html code:
    <div align="center" class="container">
    <div id="ca-container" class="ca-container">
    <div class="ca-wrapper">
    <div class="ca-item ca-item-1">





    <div class="ca-item-main">
    <div class="ca-icon"></div>


    My problem is, my image is in css file, how to fix hyperlink to that css image using this html code.
    I tried this way but it is not working.

    <div align="center" class="container">
    <div id="ca-container" class="ca-container">
    <div class="ca-wrapper">
    <div class="ca-item ca-item-1">



    <a href="index.php?option=com_content&task=view&pdt=true&id=480&Itemid=1"> <div class="ca-item ca-item-1"></a>

    <div class="ca-item-main">
    <div class="ca-icon"></div>

    Thanks
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2011
    Location
    The Pleiades
    Posts
    300
    Rep Power
    9
    Good morning,

    Can you provide the structure for your website?

    Where are your images in relation to your CSS file?

    Kind regards,

    NM.

IMN logo majestic logo threadwatch logo seochat tools logo