html

is a DIV inside a TD a bad idea?

It seems like I heard/read somewhere that DIVs inside of TDs was a no-no. Not that it won't work, just something about them not being really compatible based on their display type. Can't find any evidence to back up my hunch, so I may be totally wrong. ...

How to set the style/class of an HTML element in MVC?

In a Master page, I have this.... <ul id="productList"> <li id="product_a" class="active"> <a href="">Product A</a> </li> <li id="product_b"> <a href="">Product B</a> </li> <li id="product_c"> <a href="">Product C</a> </li> </ul> I need to change the class of the selected list item... When '...

Image exists but does not appear as background

I have this in my CSS file: body {style.css (line 3) background:#CDF8FF url(images/final_bg.jpg) no-repeat scroll center top; clear:both; font-family:Arial,Helvetica,sans-serif; margin:0; padding:0; } That images exists, as I can get to it via the browser, but it is never displayed to me! What is wrong? I use firebug to see if its th...

Upload file button for remote files

Hi all, Here's the scenario. I have a simple browse button. Right now, it opens up the folder hierarchy on my local computer. (PC). However, I want to pick a file from a remote unix server which I have access to. Is there a way to display the file hierarchy of the remote unix server WITHOUT having to mount the drive? Are there...

CSS - How to remove whitespace between anchored images

I have two anchored images on top of each other, separated with a line break. I want the images to sit directly on top of each other, but in Firefox there is a gap between the images. It works in IE7. The only way I have been able to fix this is by changing the line-height (which I don't want to do). <a href="image.jpg"> <img heigh...

$_POST variable

I'm encountering a problem. I'm using Wordpress, but this ain't a Wordpress question. I'm using two forms, on one form I have all the input fields and one hidden input field which I use for checking which form the user has submitted. I have saved its value as 'save'. There is another form which is just for resetting all the options and ...

IE7 DIV does not stretch with content inside it

Hello, I'm having an issue with IE7. In IE6, Firefox and other browsers, the DIV containing the content stretches vertically depending on how much content is in it. In IE7 however, the DIV only stretches to the absolute minimum height of the page then it stops... it even cuts off the content inside of it. I cannot figure out for the li...

button javasript works on IE but not firefox window.navigate()

<input type="button" value="Back" onClick="window.navigate('http://www.google.com')"&gt; This works on IE8, but not firefox or opera. Anyone know why and how to fix it? ...

Stretch image as background

I need image to stretch as background of page. It doesn't matter if page will not scale well, what ever screen resolution may be, whole image has to be visible on screen. I found some solutions on Google, but it either didn't work in Firefox2 or IE6 or both, and I need those two too. I hate when people don't upgrade their software, but I...

Combining styles

I have long wanted to be able to include one style class within another. For example med-font { font-size:12px; } #message a { style: med-font; color: blue; ... } /* lots of other styles, some of which use med-font */ Obviously this is a stripped down example, but the key point is that all those anchor tags within #message s...

Pure Python Tidy-like application/library

Hi, I'm looking for a pure Python library which works like Tidy. Please kindly advise. Thank you. ...

Navigation Menu - ideas?!

Hey there I'm currently teaching myself to create websites - this particular site is for a that business I have. I'm using Dreamweaver CS3 to do so. I need some help with the horizontal navigation menu I am trying to create. I have three main categories within my website, each with their own small image to represent them. I want to hav...

Text Overflow Problem & Text Non Wrap

Scenario: One header DIV with three DIV's inside side by side floated left. Problem: "Text" from HEADER_A div is overflowing into HEADER_B DIV and so on. Screenshot / CSS: #header{ height:127px; width: 718px; } #header_a { width:181px; height: 127px; color:#FFFFFF; float:left; } #header_b{ width: 363px; float:left...

CSS floats messed up

It doesn't stay where I want it, look at this: <div style="float: left; width: 30%"> <img src="{avatar}" alt="" /> </div> <div style="float:right; width: 70%; text-align: left"> {message} </div> <div style="clear:both"></div> Internet Explorer: Mozilla Firefox: I want the text to be in the top (tried vertical-align: top), and ...

How to increase spacing between lines in CSS?

I have something similar to that: <table> <tr> <td>Hello,<br/>World!</td> </tr> </table> Both lines Hello, World! are displayed too close to one another. Any way to increase spacing between them (by a portion of a line width (without another <br/>))? ...

How to override priority in CSS classes?

Hi, I have this HTML <div id="contentheader"> <div class="cat"> <ul> <li> <a href="http://127.0.0.1/test/" title="Home">Home</a> </li> <li> <a href="http://127.0.0.1/test/option1/" title="Option 1">Option 1</a> </li> <li> <a href="http://127.0.0.1/test/option2/" title="Option 2...

How to solve this iGoogle-gadget issue?

I want make an 'iGoogle gadgets' that changes the search box on the igoogle page. Here is my code so far: <script type="text/javascript"> function bing(){ document.getElementById('sfrm').action="http://www.bing.com/search"; } </script> <input type="button" onclick="bing()" value="Search"><br>with Bing. I have tested it briefly with ...

Floating LI's in IE 6

I'm building a navigation using the simple <ul><li></li><ul> system and floating them to the left side so they appear inline. The follow code works in all browsers except IE 6. The HTML <div id="sandbox_container"> <div id="sandbox_modalbox"> <div> <ul id="sandbox_modalbox_nav"> <li id="Intro" class="modal_active"...

How can I prevent positioned block images from sliding off the page?

When I resize the window too small, the image slides off the left of the page. There is no way to even scroll over to it. What can I do to prevent the image from sliding off the page? The problem is absolute divs but I don't know how to get it to work without them. The code: <!DOCTYPE html> <html> <head> <style> body { margin: 0;...

Background image in .jsp with css

I have my .jsp file and when I put background image in some of the tags it doesn't appear there. I put images in .jsp with css: background:#233C9B url("design/header.gif"); folder structure is: css: -->file.css -->design: -->header.gif if I rename .jsp in .html the picture appears in browser but when I start it with...