Web Designing in jaipur{ menu}

Showing posts with label Raj. Show all posts
Showing posts with label Raj. Show all posts

Friday, 26 August 2016

Can I style an placeholder text color on firefox ?

Add opacity: 1 to the Firefox placeholders. 

HTML

<input id="myinput" type="text" placeholder="my placeholder" maxlength="30" name="myplaceholder">


CSS:-

input#myinput::-webkit-input-placeholder {
color:#FFF; background-color:#CCC;
}
input#myinput::-moz-placeholder {
color:#FFF; background-color:#CCC;
    opacity: 1;
}
input#myinput:-moz-placeholder {
color:#FFF; background-color:#CCC;
    opacity: 1;
}
input#myinput::-ms-input-placeholder {
color:#FFF; background-color:#CCC;
} /* IE10+ */



RESULT:-





Web standards is the present and future in web design – the way all websites should be design and implemented. Websites created using web standards load faster, have better search engine ranking and are easier to update. All the websites I show here have been created this way.

Thursday, 5 February 2015

Disable right click using jquery

To disable right click menu using jquery, the following code snippet can be used
$(document).ready(function(){
    $(document).bind("contextmenu",function(e){
        return false;
    });
});




Web standards is the present and future in web design – the way all websites should be design and implemented. Websites created using web standards load faster, have better search engine ranking and are easier to update. All the websites I show here have been created this way.

Monday, 5 January 2015

How to Add Background Music to Your Web Page , How To Embed Sound on a Web Page

If you have a music file (such as an MP3 file) that you want played when a visitor clicks a link, put HTML code like the following on your page:

<embed src="yourmusicfile.mid" autostart="true" loop="true"
width="2" height="0">
</embed>
<noembed>
<bgsound src="yourmusicfile.mid" loop="infinite">
</noembed>



This code appears to be compatible with all versions of IE, Netscape and Opera.