html

How do I select all the rows in a table, except a particular row, using CSS?

I would like to apply a style to every row in a table except a specific row (could be the first, or could be one with a unique class or ID - doesn't matter). How do I do that? ...

Is there a css equivalent to 'align="center"' ?

I tried: margin-left: auto; margin-right: auto; But it doesn't center the elements in my table cells. I have a combination of text and <span> elements in the <td>s. Once I set 'align="center"' in any of the <td> elements, it does center. How do I achieve this in the stylesheet? Btw, when I do text-align: center that works for text....

is their any tricks to test ie6 tuned codes without installing ie6?

Hi there. i am on windows 7. is their any way i could test the ie6 tuned codes on my local machine without installing the browser? ...

Conditional Comment to run for all browsers except IE 8 and below

how can i write a conditional comment for scripts that should run for all browsers except IE 8 and below? i saw Conditional comment for 'Except IE8' ? but how do i adapt it to include scripts files not inline scripts? ...

How do I put a horizontal line/border right in the middle of a table row?

Essentially I would like to apply a bottom-border, but rather than being in the bottom of the cell, I want it to be in the dead center. How do I do that with CSS & HTML only (and using no graphics)? So imagine the height of the cell/row is 50px, and width = 100px, I would like the line to be width = 100px, and it to be at 25px height i...

It is possible to use a custom IP with the geolocation feature of Google Chrome?

Hi, today i tested the geolocation system implement by google on Chrome, with this page: http://www.browsergeolocation.com/ , the think is, is possible to use this service but without my ip?, i mean, using other ip to retrive the geo info. PS 1: I know the are many sites that offer iptogeo services, but they only give you a very general...

Post text from a text area

I have a form where a user types paragraphs into a text area and then it takes them to another page after they submit. How can I pass whatever they typed to the page after they submit? The text area might have linebreaks and if I use a query string to pass the data, it gives me an error. This is my current code to pass the field: <?php ...

video as site background? HTML 5

I want to use a video as a background instead of an image that automatically stretches to the whole screen (background). I would also like to rotate videos and images.. so that there is a random video/image displayed in any order. It would also be nice to know how to delay video playback, so that the video only plays once 30 seconds af...

Div 50% inside a container

Can we somehow set up height:50% for a div that is situated inside a container (preferebly a table cell) the dimensions of which we do not know and they may change a lot dinamically. ...

Visited and Link not tally

When I reload the page, the link change back to bold styling even when I have visited link. How do I make the link display correct styling? CSS: .pname1 a {text-decoration:none;color:#444;} .pname1 a:link {margin-left:5px;font-weight:bold;} .pname1 a:visited {margin-left:5px;font-size:12px;font-weight:normal;} .pname1 {...

Form is not submitting via javascript on a button

My website has been created with a CSS/HTML frame work that has been integrated into an ASP.NET website. Inside of a ContentPlaceHolder, I have a simple login form. The catch is that I am using the onclick event of an image to submit the form. It normally works pretty straight forward, but this time I am having an issue. <div id="lo...

Can you you show a grey hint in an HTML text box with CSS alone?

You see these text input boxes from time to time on the web: a grey label is shown inside the box, but once you type there, the grey text disappears. This page even has one: the "Title" field behaves exactly like that. So, questions: Is there a standard term for this? I'm really struggling to find anything on google Can it be done wit...

cgi/gdform.cgi mail function

Hi I have a contact us page in htm and my form action is mydomain/cgi/gdform.cgi. I want to change my email(recipient mail id) id and the subject of the mail . But i don't how it is. Does any on know this. Please help me . ...

How to load an external website in a DIV with out IFRAME

Hi, How to load an external website in a DIV? I must not use IFRAME Thanks in advance aar ...

How to operate with onfocus ?

Guys, I have a textbox. Now when the page is opened i want the textbox to have a default value.Once he click on the textbox the value should disappear and again when he removes his cursor from the text box ,the old value should come back. So how do i do this ? Thanks ...

Different form behavior in Chrome/Firefox

I have this form in a Django application In Firefox it works as charm, and in Chrome/IE6 this won't do the post operation needed Any ideas why ? <form action="/lang/i18n/setlang/" method="post"> <input name="next" type="hidden" /> <input name="language" type="image" value="ar" src="/flags/flag_ar.jpg" onclick="this.form.submit()" tit...

PHP preg_replace to remove MS Office style html comments

Im looking for a way to remove MS Office style html comments, and everything in between. These are of the form: <!--[if gte mso 10]> blablabla blablabla <![endif]--> or <!--[if gte mso 9]> blablabla blablabla <![endif]--> The problem i'm encountering is that I do not want to remove ALL comments from the html. Only these MSO styl...

Why is there one of my select options that put nothing in the query string at form submission?

This is my html: <select name="results"> <option value="0">Vis alle</option> <option value="10">10 resultater per side</option> <option value="20">20 resultater per side</option> <option value="30">30 resultater per side</option> <option value="40">40 resultater per side</option> <option value="50">50 resul...

Encode the client viewable source in HTML

How to encode our HTML coding, so that they are not easily readable. ...

Form being submitted on clicking image

Here is my code: <form action="telecallerinfo.php?action=modify&id=<?php echo $id;?>" method="post" enctype="multipart/form-data"> <table class="panel1"> <tr> <td>Caller Name:&nbsp;<input name="tele_caller" type="text" size="15" value="<?php echo $tele_caller?>" /></td> </tr> <tr> <td align="right"> <...