html

HTML/JS/CSS issue getting bigger by itself

Here's the picture to begin with. I have this check box, that when you check, then with jQuery toggle(); it hides that you see in first half of the picture (#writeComment) and shows #SCtryVOTE (what you see in the other half picture, to the right). Now i dont know why but of some reason it expands when its checked, why i dont know, i...

How to make a floated div 100% height of its parent?

Here is the HTML: <div id="outer"> <div id="inner"></div> Test </div> And here is the CSS: #inner { float: left; height: 100%; } Upon inspection with the Chrome developer tools, the inner div is getting a height of 0px. How can I force it to be 100% of the height of the parent div? ...

How to Ignore query string in a URL?

Hello I have something like this: if(isset($_POST['btnProm'])){ $idads = mysql_real_escape_string($_POST['idAds']); require_once("adPromFrm.php"); } When a button is pressed, a form will appear.... When i refresh the page, the form doesn't disappear, but when i click a link with a query string (thisPage.php?lang=fr...), the...

Formatting an indented list in CSS

Hi, Let's say I have a list, with an arbitrary number of indentation levels, like so: Item Item Item Item Item Item Item Item Item Item Item If I'm displaying this list in an HTML document, how can I use CSS to handle the indentation? There might be an arbitrary number of indentation levels (although in ...

IE display problem

Hi, I have a page, and I just added pagination to it, but there's a prob in IE 7 & 8. When I add pagination code echo "<div class='pagination'>"; echo $pagination->GetPageLinks(); echo "</div>"; it breaks somehow layout in IE, I have looked all over it and I couldn't find what's wrong there. oh, and its css div.pagination {...

HTML: Form upload, only allow PNG, GIF & JPG

I have a form file upload. When the users goes to upload an image, it displays all files on their computer. How can I make the HTML upload dialog window to only display JPG, GIF and PNGs? ...

JavaScript: Text "submit" link?

I have the the following code and want to use a hyper link to submit my form. <form name="form_signup" id="form_signup" method="post" action="/" enctype="multipart/form-data"> ... <input type="submit" value="Go to Step 2" name="completed" /> or <a onclick="javascript:this.form.submit();">Proceed without uploading</a></span> </form> Ho...

Is it possible to make cross browser rendering site without using CSS reset?

Is it possible to make cross browser rendering site without using CSS reset? Is CSS Reset for all website, small, one page, big? Should we use write all css without reset then only solve needed rendering problems nad only keep needed things in CSS Reset, or we should use CSS Reset from starting point? Should i suggest to use CSS reset...

Should I not use those XHTML elements/tags/attributes which will not be in the HTML 5 spec?

If I use XHTML 1.0 Strict currently, then should I not use those XHTML elements/tags and attributes which will not be in the HTML5 spec? E.g. <acronym> and <big> ...

Can comments in HTML and CSS ever create rendering problems?

Is it possible for HTML and/or CSS comments to cause rendering problems? HTML Comment : <!-- some info --> CSS : /* some info */ ...

What is cross browser rendering?

Can any one tell me what is cross browser rendering. Thanx ...

Data mining google's web search results?

Currently, i have a google web search. If a user searches starbucks, I would only want to retrieve the company or product information, not some other weird links like blog pages, using javascript, is it possible to do so? if yes, how am i able to do it? Kind of a newbie in the data mining part..thanks! Added my coding for download for c...

Create table with PHP and populate from MySQL

Hi all, I am creating a table to display on a web page and that table is populated from data in a MySQL database. I am trying to do a couple of things that are making it difficult for me. First I am trying to have call the PHP code that exists in a separate file in HTML via JavaScript. I think I have that working right but I am not 10...

How to remove margin at top of table?

Edit: I had some code posted here but I couldn't get it to reproduce. So here is the link to the problem: http://stackmobile.quickmediasolutions.com/questions.php?site=stackoverflow No matter what I do, there is still a gap between the table and the DIV. This occurs on Google Chrome 5.0.375.70 beta on Linux. (And it seems to occur on o...

How do i make the text in this div expand vertically?

Here is something that has bogged me down for quite sometime. I have created two fiddles so you can test live: Fiddle #1: http://www.jsfiddle.net/Jdk9R/2/ Fiddle #2: http://www.jsfiddle.net/d5PEu/ Looking at the Fiddle #1 you can make out that if the text is not formatted properly with spaces, the text overflows the border. How do i m...

how to open HTML page stored on client machine from aspx page.

Hi, I m developing asp.net application in which I m opening HTML page that is stored on client machine on that page I have a link which will open aspx page on server, On that aspx page I have a button that will open another html page stored on client machine. Since I m new to web development Plz help me and suggest me some solutions for...

How do i prevent the textbox cursor from blinking throu a overlayed DIV under IE8?

this occurs only under IE8, FireFox hides the cursor as you would expect. the DIV in question has a absolut position and z-index: 2 (increasing the z-index does not help) just removing the focus from the textbox is not a desired solution. ...

HTML Forms - Are name and id required?

Why do I need the name and id attributes for <input> form elements? Which is used for POST data sending and which can I exclude? ...

How do I get the element after my horizontal css navigation bar to appear below it?

I'm using a css unordered list to make a site navigation bar, using display: inline, display: block, and float: left. The next element that I put after the navigation bar is placed to the right of it. How can I align the next element so that it is displayed below? The html: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "...

CDATA xml parsing extra greater than problem

Hi, I am creating an xml using php and parsing that xml in iphone application code. In description field there is some html tags and text. I am using following line to convert this html tags in to xml tag using CDATA. $response .= '<desc><![CDATA['.trim($feed['fulltext']).']]></desc>'; Now, here my $feed['fulltext'] value is like t...