HTML (HyperText Markup Language) is the principal markup language used for structuring web pages and formatting content. The most recent iteration of HTML is HTML5.
0
votes
0answers
13 views
CSS selector which checks next element
I have such HTML code
<li data-bind="attr: { class: MenuItem.CssClass, 'data-Id': MenuItem.Id }">
<div class="subMenuActions">
<i class="icon-caret-right" />
...
-1
votes
0answers
15 views
Some of the containers not getting displayed to their full given height (code included)
Sorry but somehow jsfiddle not opening at my end currently so unable to ease the investigations. But following is the whole of HTML I have tried out.
<!DOCTYPE html>
<html ...
0
votes
1answer
8 views
Stacking divs in a single page and moving between them
This graphic roughly represents what I am trying to do. The second rectangle in the top left represents the viewport. Which means that each div should cover the whole viewport and none of the other ...
0
votes
1answer
13 views
How to solve jquery Twice script execution with dialogs?
I have a dialog ($('.dialog').show()), that writes a form ($.post('/form/xyz', null, function (data) { $('.dialog').html( data );} )). That form has an script (javascript/jquery) like this:
...
0
votes
0answers
20 views
Required Jquery News Ticker
I want Jquery News Ticker. I have tried some tickers and they worked prefect. But My requirement is below:
Suppose News Ticker is running and it shows share company name and its price. Now current ...
0
votes
1answer
12 views
Load an img in a JSP
I'm trying to load an image dynamicaly in a JSP and I'm trying to do something like:
<img src="<%= book.img %>">
where book.img contains a string (an absolute path). How can I fix the ...
0
votes
1answer
46 views
How to print error to div tag?
i have two files
index.php and code2.js
in inde.php i have defined four pre tag like this
<pre class="codeguru">hsduic</pre>
Let us now look at how PHP determines the data type depending ...
0
votes
3answers
31 views
Circular div, vertical and horizontal center alignment
I have the following code:
<!DOCTYPE html>
<html>
<head>
<style>
#playhead-outercircle{
width:10px;
height:10px;
border-style:solid;
border-width:1px;
border-radius:100px;
...
0
votes
1answer
18 views
How do I break out of an iFrame only for certain domains?
if (top.location!= self.location) {
top.location = self.location.href
}
If someone has my site in an iFrame, this will break out.
However, I only want to do it for certain domains. How ...
0
votes
2answers
16 views
using Image as an event trigger with jquery, html and css
i im developing a proyect web site with css, jquery and html. what happens is that in the html, i have a table with only 3 columns and i'm placing images to use as buttoms to toggle the content below ...
-2
votes
1answer
25 views
How to speed up file_get_contents()? or any alternative way
i have a website scrapping project.
look at this code.
<?php
include('db.php');
$r = mysql_query("SELECT * FROM urltable");
$rows= mysql_num_rows($r);
for ($j = 0; $j <$rows; ++$j) {
$row ...
2
votes
2answers
30 views
Measure distance between two HTML elements' centers
If I have HTML elements as follows:
<div id="x"></div>
<div id="y" style="margin-left:100px;"></div>
...how do I find the distance between them in pixels using JavaScript?
-1
votes
0answers
27 views
How to create different shape of trapezoid images using css?
I am working on a website where I need to use different trapezoid shape of images. Here I am giving you that image in rapidshare link:
http://rapidshare.com/files/3321655398/trapezoid.JPG
I have ...
0
votes
4answers
29 views
How to adjust height of a HTML element to cover all free spaces of it's parent?
Suppose we have a DIV element like this:
<div id='parent'>
<!-- The childs will come here -->
<div id='footer'>This is footer</div>
</div>
and this function ...
-1
votes
2answers
20 views
how to get value from list box in html
This is an example,
<select>
<option value=1>Cars</option>
</select>
How i can get the value of selected "1" and value in list box "Cars"?