[Solved] HTML header align content to center

[ad_1] Two things: the value for vertical-align is middle, not center (and absolutly not central) You need to set this to the image, not the heading img { width:35px; height:35px; vertical-align: middle; } <h4 class=”modal-title” id=”PublishTitle”><img id=”PublishTitleImage” src=”” /> bla bla</h4> 1 [ad_2] solved HTML header align content to center

[Solved] Show div when the video is paused

[ad_1] var video = document.getElementById(‘video_elm’); video.addEventListener(‘click’, function() { this.paused?this.play():this.pause(); }, false); video.addEventListener(“pause”, function() { document.getElementById(“paused”).style.display = “”; }); video.addEventListener(“play”, function() { document.getElementById(“paused”).style.display = “none”; }); <video id=”video_elm” width=”200″ autoplay> <source src=”http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4″ type=”video/mp4″> Your browser does not support the video tag. </video> <div id=”paused” style=”display: none”>The video is paused, click it again to resume</div> [ad_2] solved … Read more

[Solved] user to change size of div using the row-resize cursor – like codepen.io [closed]

[ad_1] There are a million and one ways to do this, and I suggest you just use an existing framework like Dojo or something… But if you absolutely must have custom code, the general gist of it is create a container with relative positioning, then create embedded containers that are absolutely positioned according to the … Read more

[Solved] Unique Random DIV ID using javascript [closed]

[ad_1] Here’s a simple random string generator in a working snippet so you can see what it generates: function makeRandomStr(len) { var chars = “abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789”; var result = “”, rand; for (var i = 0; i < len; i++) { rand = Math.floor(Math.random() * chars.length); result += chars.charAt(rand); } return result; } document.getElementById(“run”).addEventListener(“click”, function() { … Read more

[Solved] I want to add dynamic class

[ad_1] You mean like this? html <div id=”menu”> <ul> <li>one</li> <li>two</li> <li>three</li> <li>four</li> <li>five</li> <li>six</li> <li>seven</li> <li>eight</li> <li>nine</li> <li>ten</li> </ul> </div> jquery var i = 0; var count = 5; $(“#menu ul li”).each(function () { if (i < count) { i++ } else { i = 1; } $(this).addClass(“item-” + (i)); }); 1 [ad_2] solved … Read more

[Solved] How to create a dotted shadowy effect on an image with CSS?

[ad_1] Mikel, you can’t achieve a silk-screen effect using CSS and a single image. It’s not going to happen any time soon, in any cross-browser compatible way. Maybe, eventually, when you can custom-program CSS filters using HLSL or similar… But for the time-being, even with near-ish-future CSS-filters, I don’t think that they’re going to offer … Read more

[Solved] how to call array index in php [closed]

[ad_1] I think you don’t realy get the way PHP is handling objects and arrays. As kingkero said, the proper way to access your buttons by “id” is $page[‘button’][‘Your id’] As so, you will have to change function that you use to create the actual button. You could create an object that is callable the … Read more

[Solved] radion button selection based on input value [closed]

[ad_1] You can do in this way $checked = $_POST[‘gender’]; <input type=”radio” value=”male” <?php if($checked==”male”){echo “checked”}; ?> > Male <input type=”radio” value=”female” <?php if($checked==”female”){echo “checked”}; ?> > Female 1 [ad_2] solved radion button selection based on input value [closed]