html

why is align and text-align different with tables?

Hello I am trying to find a way around using the "nasty" align=center trick.. Well, while I was looking at some code, I noticed that two very similar pieces do not render the same. I can not find a way to make them behave the same way. This includes replacing the toplevel table with a div. Note: the bottom level table must stay a table...

Do browsers have two sets of rules (one for old HTML and one for the newer, standard HTML ) for displaying web pages?

Hi a) Book I’m reading claims that browser has two sets of rules (one for old HTML and one for the newer, standard HTML 4.01 ) for displaying web pages and if we don’t tell the browser ( by adding document type definition ) that we are using standard HTML 4.01, then browser will assume we’re writing old HTML and thus will use old set ...

what to do if my users have ie6

i have built a beautiful website that works very fast in all of the latest browsers but many of the users are forced to use ie6. If i can't get around this problem. Is there anything to do to optimize some of the inefficiencies of ie6 when building my site to lessen the pain.? its an asp.net mvc site with heavy use of jquery. ...

Dynamically replace html tags

I'm trying to replace some html tags which are being generated by ajax script. Ajax script generates the following ul list: <ul> <li class="odd">some text</li> <li class="even">some text</li> <li class="odd"><hr /></li> <li class="even">some text</li> </ul> I need to replace <li class="odd"><hr /></li> with </ul><hr /><ul>. I ...

Strange Character on IMG Link?

Exact Duplicate: strange characters on IMG Link? Hello all im using an open source Auto Dealer database made in PHP CMS style. usally when you copy and paste html code on the comments text box on any cms you can edit the page layout with images and fonts. I did this and it did change the layout as i wanted but one problem is that t...

XPath - Searching for descendent elements that a) match a filter and b) don't have a specific ancestor.

Hi, I'm trying to get an XPath expression together that will give me all the descendent elements of a node that match a filter (e.g. [contains(@class,"interesting")] but which don't have a specific ancestor e.g. [contains(@class,"frame")]. Probably best explained by example: <div class="frame"> <p class="interesting">alice...

How do I add playback controls to a SWF file embeded in HTML?

What am I missing here because my video doesn't have any controls? Is there a special parameter I need or do I need to encode the SWF file in a special way? I just used a MPEG to SWF converter provided by Blaze Media Pro. ...

jQueryUI Accordion effect selected tabs

Hello, I am using the jQueryUI Accordion effect in a webpage. However, I ditched the pre-packaged CSS sheet in favor of my own. The only problem is, I don't know how to make my tabs stay a certain color (they have a hover color-fill effect) when they are selected. Can anyone help? Below is a picture so you can see what I mean (I have my ...

Z-Index Transaparent Image

Hi, Hoping someone can assist but I need to take an existing banner image that has, as part of the image, a company logo at the left hand side of the image, but the whole banner is an image. Now what I am after, is a means of creating a layer region (transparent/invisible) over the existing image logo, so that: A) the orginal image ca...

Elegant coding, how to deal with hidden/invisible HTML code ?

I am developing an ask-and-answer website. There is a "Choose as best answer" button besides each answer, this button should be visible to the asker but should be invisible to other viewers. Other part of the web page is almost the same. So how can I code this web page? Should I check the viewer identity every time to determine whether o...

The following html not working in IE?

<a href="Signup.php"> <input name="" value="register" type="button" class="button" /> </a> How to fix it? ...

how do i get the row (and its index) in an html table from a button click inside a cell in that row.

question is in the subject ...

Xpath expression matching several attributes for HtmlAgilityPack

Assuming I want to find a table with certain width and height attributes No problem with doc.DocumentNode.SelectSingleNode("//table[@width='500']"); Would it be possible to add height='500' somehow to this Xpath expression ? ...

how to make a user restrict to download?

I know this question is silly. But as per our intelligent Client request, I am not able to answer his question. Any one help for this. We are building a online tutoring site. where it contains pdf, .ppt, .doc formats files are uploaded for reading as course materials. His (Client) request is that user can read all the contents but they...

Removing resize handlers on contentEditable div

I created a contentEditable div to use as a rich textarea. It has resize handlers around it that I'd like to get rid of. Any idea how I'd do this? Edit: This appears to be happening because I am absolutely positioning the div, so Firefox adds an infuriating _moz_resize attribute to the element which I cannot turn off. ...

Web Automation Using MSHTML

We want to automate a web application which is developed in asp.net. For automating this site we are planning to use the MSHTML. But before finalizing MSHTML I would like to know if there are any known limitations of MSHTML or please share list of controls which we may not be able to automate using MSHTML. Please share your experiences ...

Is there a size limit to the amount of data returned by an Ajax Request?

I've been having this problem in the Chrome browser. i use jquery's ajax post. Ajax is supposed to return a really long raw html. When I do it in FF3 and IE8 it works fine. But in chrome the data seems to be truncated. ...

HTML: Replacement for <center>

I always thought that replacing the <center> tag with <div style="text-align:center;"> will get me the same results. Apparently I was wrong. This is a portion of my HTML: (you can also see it in action in the page I created for this question : http://www.moviez.4pu.com/ErrorPageSO.aspx <div style="margin: 0 auto; background-color:red...

How come this for-loop for displaying small images skips sometimes when uploaded?

Im using PHP code to create a dropshadow effect on images. I have this for-loop which basically gets an images size (width, height) and then adds a 1px drop shadow effect by using a for loop and its size. for example: for ($i=1; $i<=$height; $i++){ $display_table.="<img src='dropShadowLeft.jpg'><br>"; } It works flawless on my c...

How should I do this in CSS ?

I am currently creating a dropshadow effect using PHP to send html to the clients computer, in other words, i display a 1px shadow image along the height and width of the image. I want to do this with CSS! but how? The shadow images for the left side are 4x1 px, and bottom are 1x4 px. Then I have 3 images for the three corners, top-lef...