xhtml

Place background image 1em from the right?

As far as I can tell, it is not possible to place a CSS background image 1em from the right border of any block, neither is it possible to place a image 1em from the bottom. The following code places the background image 1em from the left and 2em from the top. <div class="foo" style="background: url('bar.png') no-repeat 1em 2em"> Som...

Does IE7 have a problem with some CSS attribute selectors?

I am trying to style some form labels by selecting them with their 'for' attribute. But nothing is being picked up when I preview it in IE7. I'm doing this because I'd like to style them differently to each other, without adding to the existing markup. So if my css looks like the following, I get nothing: <style> label[for="foo"] { ...

How do I submit a form with a link in ASP.Net MVC?

I have a HTML form, and I have a Controller Action that accepts the POST request. Everything works with a regular submit button, but I would like to submit the form with a link (<a>-tag) instead, to be able to further control the formatting. Is there any way of doing this nicely built into the ASP.NET MVC Framework, or should I write my ...

How do I get IE 7 to open XHTML files?

An application I'm building is generating XHTML documents that are going to be distributed in a bunch of different ways, including email. I can open these documents in Firefox or Chrome (and by "open" I mean from Windows Explorer, not through a web server). With IE 7, though, I'm having two - possibly three - different problems. If th...

What (free) web development IDEs do people use?

I'm after a free (and Free) lightweight IDE at least on Windows, and preferably cross-platform as well, which handles: XHTML, CSS and Javascript (maybe even jQuery..!) syntax highlighting FTP deployment Version control integration (CVS, SVN, Git, whatever) What've people found to work? EDIT: I've tried a few of these, and have chose...

HTML attribute accesskey not working as it should

So, I'm testing all different HTML tags and attributes, freshing things up a bit, and for some reason, accesskey does not appear to be working. The accesskey attribute is used to assign a key to an element. Depending on your OS, pressing Alt+that key (Windows) or Cmd+that key (Mac) will give focus to that element. Here's a little somet...

Transparent div problem

Hey i have this div that shows as a popup: <div class="popup"> </div> Then with jquery i add another class to it to give it with the css associated to that class, position, size, color and transparency: .show { position: absolute; color: #F4F5F6; width: 600px; margin-left: -300px; height:300px; background: #00...

Possible to do a glow/shadow using partial transparency in HTML/CSS?

Well I guess this is a two part question. Firstly how can I make an image have partial transparency (I think you can do this with PNGs but don't know how -- I have photoshop just need instructions?) Secondly how do I use that image in a layout using CSS? I think I need some kind of "PNG Hack" ...

I need to show excel data on a presentable web page or word doc?

I have survey results which are formatted in excel fine. I then need to show these results indivually wiht the headings on a presentable word doc or wewb page? s there any weay to do this. For example: column one - comlumn 2 result 1 - result 1 result 2 - result 2 to comlumn 1 result one column 2 result one column 1 res...

why does my css render wrong in IE?

you will notice the hover css for the links in the main nav area (grey bar under logo) for this site http://testing.ksischool.com/ works fine in firefox, but IE7 chops off the bottom few padding pixels. why? ...

XHTML or HTML 4.01 ?

What is your preferred format for html content? Why do you choose one over the other? ...

How can I get the form value from a disabled <input> element

The HTML standard for forms appears to be such that disabled input elements do not contribute to the form name/value collection. Is there ANY way to get around this? I need to be able to toggle disable on and off but still return whatever the value is when the form is submitted. I realize that I can use JavaScript to copy the value to...

Charset for foreign languages

I'm currently doing some HTML that with urdu, farsi and chinese simplified characters. I'm having problems finding good resources online on what charset to use: <meta http-equiv="Content-Type" content="text/html; charset=???" /> Any suggestions? ...

Editing xhtml jsp files in Eclipse

I've got some jsp files that are supposed to output xhtml. They seem to have the correct doctype etc but Eclipse is not parsing the xhtml attributes. For instance for the root element: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> I get the warning: "Undefined attribute name (xmlns)." What's the best way to solve...

Image Navigation Using text-indent

Hello, I'm trying to create a simple image navigation for my site, using CSS to declare the background-image property of a list-item (li). The problem is, when I use text-indent to put the image off-screen, the link is no longer there (off screen as well I presume). Any help would be greatly appreciated. Here is my XHTML: <div id="nav">...

Why Won't Server Side Includes Work?

I have been trying to use Server Side Includes on my website to save time writing code and be able to change site wide elements quickly and easily. However i cannot seem to get them to work, either locally or on the Server. I have set them up as .html files (with only the code needed and no html or body tags) in a "ssi" folder and am c...

Can i make an XSLT transformation directly in html page ?

I know namespace are used to describe, like doctype, but is there a way or a trick to transform inner namespace html with an xsl using xsd ? <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" x...

Why should I use 'li' instead of 'div'?

I'm not sure why I need to use ul-li vs simply using divs when listing items. I can make both look exactly the same so where is the functional advantage to creating an unordered list vs lining up divs? ...

<UL> Centered within a Div

On a design I am coding, there is a horizontal list that serves as the navigation for the site. It spans the entire width of the page. You can see it here: http://aquate.us/film/ Now, the <ul> contained within div#navigation refuses to act centered within the div. It seems to be offset towards the left side. I've searched the net and n...

IE 6 select controls(Combo Box) over menu

In IE 6 select control(combo box) is displaying on top of menus. I checked some javscript menus , mmmenu,http://www.leigeber.com/2008/11/drop-down-menu/, all are getting under select control. Its not fixable by assigning Z-Index. Is there any other solution. ...