CSS html : non-standard picture frame: how to imlement with CSS and HTML?


Tags: html,css,image,frame

Problem :

I am trying to create a photoslider, in the main content there has to be a changing picture in the frameö http://syrdoccam.com/newfilika/index.html

I am using this frame http://syrdoccam.com/newfilika/images/frame.png

<div id="projectpicture">
    <img id="projpicFrame" src="images/frame.png">
    <a class="projlink" href="http://www.filikaajans.com">
        <img id="picProj" src="images/projpic.png">
    </a>
    <div id="arrows">
</div>



#projpicFrame {
    margin-top: -7px;
    margin-left: 50px;
}

#picProj {
    margin-left: -569px;
    margin-top: -7px;
    position: absolute;
}

I want to accomplish this in a good way?



Solution :

Admittedly, I've shied away from CSS masks for compatibility reasons. If you know your core audience is going to be able to see them, then go for it.

There's also the idea of adaptive design: offering an experience for all that offers a similar UX/UI.

To that point, I offer this: enter image description here

Make the outside of the mask match your background-image or color. Then only have transparency where you truly need it. This approach will allow for a slider in IE7 ... just sayin.

Offer the simplest solution as the default. Then use javascript feature detection to load the SVG, if you've got a compatible browser viewing the site.


    CSS Howto..

    How to make application browser compatible

    CSS. How to add small image on background?

    How to display background-image on entire site

    How to change CSS style of div after onclick method

    CSS newbie: How to align my link to the right side of the page?

    How to recursively remove CSS classes

    How to invert colors using CSS on hover

    How do I add css elements to ng-repeat templates?

    Window resize shifts buttons to the bottom of the page. How to fix the css in this page?

    How to stack divs from top to bottom in CSS

    how to properly override CSS in external file

    How to apply “!important” from CSS via jQuery? [duplicate]

    How to position a set in Raphael SVG?

    How to add a second border around a CSS circle

    How to assign a class or ID to a table within a JavaScript function?

    How to make lightbox scroll the lightbox and not the page

    How to print HTML/PHP page without including the NAVIGATION TAB contents, FOOTER, and head part

    How to create a box having border top width more than content at different browser display size?

    How do I insert an image in HTML so that its fills up the entire screen regardless of screen size?

    How to dynamically change the value of a CSS property inside a stylesheet?

    How can I anticipate which type of CSS selector will work?

    How to use animation with transform CSS

    How can I make this Asp.net button have the same CSS as this

    How to make image clipping in css

    CSS and HTML: How to create an Expanding DIV On Click?

    css in firefox and ie is rendering old css file…chrome shows new css just fine

    How to set content area div height with dynamic header div

    CSS IE7 How can I force UL inside LI to be wider than the parent

    How to make a child div alone responsive using css?

    show css icon with select icon class selcetbox