Tag: css

Cannot get CSS Drop-Down above Flash File

I have searched everything and tried every method I can get my hands on and cannot get my CSS drop-down menus to display above my Flash file. You can go to: http://beta.riverlifefellowship.com and username is ‘riverlife’ and password is ‘flow’ (without the quotes on both). I am using swfObject and have the <param name=”flashvars” value=”wmode=opaque”/> […]

hide keyboard on ios device when focus in input

I want hide virtual keyboard on ipad device when some plugin ( or other code) set focus to input element on html page using pure javascript( or jquery library)

regular expression in name id or class?

i have for example: <span id=”name1″>name1</span> <span id=”name2″>name2</span> <span id=”name3″>name3</span> <span id=”name4″>name4</span> <span id=”name5″>name5</span> i must use: $(“#name1”).click(function(){ $(this).css(‘background-color’, ‘red’); }); $(“#name2”).click(function(){ $(this).css(‘background-color’, ‘red’); }); etc i would like somethings: $(“#name [1-5] “).click(function(){ $(this).css(‘background-color’, ‘red’); }); i dont will add class. i would like make this for id and regular expression.

When to use the css element/class selector in javascript?

I’m currently working on the codecademy course on building an interactive website and I stumbled upon an ambiguity concerning the use of the elemement/class selection of the css elements. javascript: var main = function() { $(‘.article’).click(function() { $(‘.article’).removeClass(‘current’); $(‘.description’).hide(); $(this).addClass(‘current’); $(this).children(‘.description’).show(); }); }; css: .current .item { background: rgba(206,220,206,.9); } Why do I have to […]

Twitter-Bootstrap respond.js not working for IE8

I’m still having some problems getting my Twitter-Bootstrap page to display the desktop view correctly in IE8. I’ve been following a few threads here but the voted up advice is just not working for me. Using the suggested meta tag <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> Included local versions of bootstrap.css, html5shiv.js, respond.js, ie8-responsive-file-warning.js Here is my head […]

Adding a class to img tags using JavaScript

I am a learning javascript guy and I am trying to add the Image Hover Shadow Effect With CSS to my images and for that to work , I have to add an class to all my img tags , which is not possible manually so i am trying to write a javascript that does […]

How to add CSS class dynamically to html element

I am new to the Javascript and especially to angularJS so maybe my question wil seem naive to some. I am working on my angularJS tutorial project. I have this HTML rows: <link href=”http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css” rel=”stylesheet”/> <link href=”http://acornejo.github.io/bootstrap-nav-wizard/bootstrap-nav-wizard.css” rel=”stylesheet”/> <link href=”http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css” rel=”stylesheet”/> <body> <div class=”container”> <ul class=”nav nav-wizard”> <li class=”active”><a href=”#”>Step1</a></li> <li><a href=”#”>Step2</a></li> <li><a href=”#”>Step3</a></li> </ul> […]

Is there a javascript equivalent to using @media query?

This question already has an answer here: How to use javascript conditionally like CSS3 media queries, orientation? 5 answers

Getting width of an element defined in CSS in em

I am having trouble getting the width of an element defined in CSS. I figured out how to get the CSS rules using Javascript, but I can’t access the width. Menu is fixed width that I defined in CSS using em. I am trying to change the width of the div1 based on the browser […]

Is there a way to highlight the target of a bookmark? (www.site.com/page.htm#bookmark)?

I want to link to bookmark on a page (mysite.com/mypage.htm#bookmark) AND visually highlight the item that was bookmarked (maybe having a red border). Naturally, there would be multiple items bookmarked. So that if someone clicked on #bookmark2 then that other area would be highlighted). I can see how to do that with .asp or .aspx […]