html

How to make HTML written by users on a site, not conflict with the site's stylesheets?

I have a website that allows a user to create blog posts. There are some backlisted tags but most standard HTML tags are acceptable. However, I'm having issues with how the pages get displayed. I keep the HTML wrapped in its own div. I would ultimately like to keep the HTML from the user separate from the main sites stylesheets so it...

mshtml.HTMLDocumentClass in C#

In C#, I managed to get the entire HTMLDocumentClass from an InternetExplorer object (navigating to a certain URL). However, in Visual Studio 2008's debug mode, the content of this HTMLDocumentClass for this particular URL is MASSIVE, including attributes like activeElement, alinkColor, all, applets, charset, childNodes, etc, etc ,etc. ...

Getting a Javascript error in IE7 but not in Firefox

Okay, so I'm writing some Javascript for a simple effect: when a drop down gets selected, a series of options will appear, depending on which one is chosen. This works great in Firefox, but when I went to test it on Internet Explorere, things weren't so pretty. It failed with, what is oh so helpful, and unknown runtime error. So, here is...

Help me fix this messed up HTML table please

I have a simmple HTML table that I just cant seem to fix. I am trying to display data like so: <-Previous Next-> 51 to 100 of 10151 records Below is the html code. I have taken out the dynamic language part that adds 'Previous' depending on what page the user is on: ED...

How would you code this: The SO Menu

I'm a person that learns best from example. Currently, I'm diving into the field of Web Development after fifteen years of developing desktop apps. I'm still getting used to all the web technologies used for developing modern web sites and everywhere I look, I see cool little UI elements and question how they're implemented. So I thought...

Hand cursor over a link not showed in IE but it is in FireFox

I have a link within a div: <div> <a href="#"></a> </div> This div make's a box, like a button, and when i mouseover it in Internet Explorer 8 works fine showing the hand cursor, but in firefox doesn't. Can some body help me. Thanks. ...

Accessing DOM elements in C#

I am using the mshtml namespace to access DOM elements as returned by a COM Browser object. My code is roughly as follows object missing = Type.Missing; ie.Navigate("http://website.com", ref missing, ref missing, ref missing, ref missing); mshtml.HTMLDocument theDoc = (mshtml.HTMLDocument)ie.Document; mshtml.HTMLDivElement myDiv = (msh...

What are the best practices for making the CSS and JS of a web page cross-browser compatible?

It's always a big problem for web designers to make their page look good in all the commonly used browsers. What are the best ways to deal with this fact? ...

CSS: Fluid Sidebar - Fluid Content

http://img263.imageshack.us/img263/6135/csso.png Everything's explained in the above image link above. Basically, I need a sidebar div whose width expands according to the content inside of it and a mainContent that expands to the rest of the width of the window. ...

Office 2007 look and feel for web site

Do you know where a can find a web site template for a web site that would look like Office 2007. I am looking for the right colors, hover, etc. ...

Why do bottom padding and bottom margins not help to add vertical spacing between these links?

I have a div with links in it. And I'm lining them up one over the other with <br> tags because I couldn't figure out how to add vertical spacingn with CSS. I tried adding a bottom margin and a bottom padding to the a style rule but it didn't seem to have any effect (why?). I could add another <br> tag to separate them more but I have to...

Set border-style:none; on my anchor tags but border shows up when I click on a link - why?

As you can see from the example below, I have a black background and red links to emphasize this problem of dotted borders showing up on my links when they are clicked. I added border-style:none but it doesn't seem to have any effect. Is there some other way to remove the dotted border appearing around the links when they are clicked? <...

How to retrieve the Mobile Number field value in my CakePHp controller..

Hi, I had created a input fields in the View Page like <div class="input text"> <label for="2">First Name (required) </label> <input type="text" value="" style="width: 300px;" id="2" class="required" name="First Name"/> </div> <div class="input text"> <label for="5">Emailid</label> <input type="text" value...

JavaScript - OffFocus event?

Hi What I want to do is display an input field with the text color black. Then when the person clicks inside the input field (onfocus) I want to change the text color to red. Then, when the person click outside of the input fied (no longer focus), I want to change the text color back to black. I know how to handle the JavaScript onfo...

How can I convert language of a div?

I am recently working in a project. There I need to convert language from English to Japanese by button click event. The text is in a div. Like this: "<div id="sampletext"> here is the text </div>" "<div id="normaltext"> here is the text </div>" The text is come from database. How can I convert this text easily? ...

Jquery form, nnlimited fields and validation on each row

Hi, I have a html form, which like this: I have 2 fields, name and email, and 2 buttons, "add row" and "submit". When i click the "add row" button, it will create a new row with 2 new fields (name and email). I store the name and email in array: ... Thus, user can ad unlimited rows. I want to have a validation, if the user fill in eit...

Hyperlink over embedded SVG

I have a page with an object tag that contains a SVG. Is there an easy method to make it clickable (in order to show a larger version in a popup when clicked)? ...

Testing WML on mobile browsers

I am developing a mobile web application which is implemented in WML (to minimize roundtrips to the server). I've tested the application on the following browsers: IE for Windows Mobile 5 IE for Windows Mobile 6 Opera Mobile Nokia Series 40 web browser Nokia Series 60 web browser NetFront (for Symbian) NetFront (for Sony Ericsson) Net...

In a nutshell, what's the difference between XHTML and HTML?

I keep being confused about the two. Can someone sum up the key difference(s) and maybe a typical use case very briefly? Is XHTML just more "strict" / clean / XML-y? If XHTML is just the "more correct" version of HTML, why should I ever use HTML at all? ...

table-layout: fixed in Internet Explorer breaks large tables

I seem to have stumbled upon a bug (or at least I think so). The bug occurs in Internet Explorer 7 and Internet Explorer 8 in "compatible mode". Here is a test-page which reproduces the bug: <%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd...