html

HTML: What I'm doing wrong in display this table?

Probably this is a stupid thing, but I don't see it. What is the problem? <html> <body> <form action="search" method="get"> <input> <input name="action" value="search" type="submit"> </form> <table border="1"> <thead> <th> <td>Name</td> </th> </thead> <tbody> <tr> <td>Smith <...

Display Pretty Code in Django

I'm looking for something I can use within django to display preformatted code. Ideally this would include out-of-the-box syntax highlighting for various programming languages, although just starting with something that displayed html and xml well would be a good starting point. Does something like this exist? Basically I am looking...

help needed with doctype

Hello! I'm having trouble with a test site's design. When I'm opening my html page with IE, without my doctype line, it renders just the way I like it, but not in FF (because of the way it interprets padding, among other things). When I add the doctype line, the page gets squeezed to a height of about 230px. My intention is to set the h...

Is there a vCalendar microformat validator/sanity checker?

I just put up a new calendar in the vCalendar microformat on one of my websites. However, I don't know how I can check if the format is valid and the dates are right. Apparently, I can't import it directly to Google Calendar. Is there an easy way to transform vCalendar data into a real calendar easily? ...

Issue with binding in jQuery for copied elements

This is actually a bigger question because I know there are several ways to solve this problem but I will try to sum it up. What I try to do: I am using this jQuery plugin to upload files via Flash http://www.uploadify.com/. However, the element #fileInput that I supposed to bind this function to is a live element which is generated aft...

shifting a piece of text down using CSS

I want to shift a text label down by about 6px I am attaching the style: .price-label{ font-family:Arial, Helvetica, sans-serif; font-size:small; position:relative; bottom:-6px; vertical-align:bottom; } The HTML is: <table border="0" cellspacing="1" cellpadding="0"> <tr> <td height="45" colspan="2" ali...

Flash on top of jQuery dialog

Hi, I know many have asked this question, but I think my situation is a little bit different. I have a site where I have some ads which is Flash hidden in a because of xhtml/html compatibility issues. But the flash elements is on top of my jQuery dialogs which is not ideal. Some solutions have suggested setting wmode to opaque but I ...

Html how to make a part on iframe, unvisible and unclickable externally? (my idea)

I have a page (A) including a BUTTON with a function close_window() , however when I embed A to my main page (B) using iframe, the close_window() can't work as expected since there is no more window anymore, and I am not able to remove the button from the iframe since A is on another domain (Security issues prevents). What I want to d...

IE 8 div and css cursor

In example bellow when you hover on icons cursor should be changed to different. It works except of IE 8. On IE 8 these icons turned to be unclikable, i.e. not only cursor are not changed, but also Jquery click event does not fire. Consider how the following html code works at FF, IE7 and eventually at IE8: <!DOCTYPE html PUBLIC "-//W3C...

Help with simple javascript php/js array

Can someone please tell me what's wrong with this code? Basically what I am doing is creating a php array for some GET variables. Then, I create a js array from that php array and pass it to a js function. The problem is that the function is not being called. I don't get to see the "hi" alert pop up. <script type="text/javascript"> fun...

Paint RTF/HTML strings into a custom swing component

In my Swing application, users enter styled text into a JTextPane which uses an RTFEditorKit (HTML is also a possibility). I then need to render many of these styled notes at specific coordinates in a custom component. I would think the View.paint method would be helpful here, but I'm not able to create a usable View object. I have th...

Link into full div - html and css

Hello, I have: <div class="sliderPart"> <a href="#computers"> <strong>Some text</strong> </a> </div> .sliderPart { width: 25%; height: 100%; } .sliderPart a { display:block; position:relative; text-decoration:none; height: 100...

Isn't WPF's grid based layout the same as table based layout that's taboo in html?

Both employ the same concept: define some rows and columns and add content into specific positions. But the Grid is the most common WPF layout container, while table based layout in html is very controversial. So why is WPF's grid layout praised and html's table based layout considered "bad" (by some)? ...

Remove tables with jQuery

Hi all. Firs off all, I'm not sure if there will be any simple and straight forward answer to this question, but I thought I'll give it a go and try to ask. I have this very messy bit of code: <table cellspacing="0" cellpadding="2" border="0" width="100%"><tbody><tr><td><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td>...

css menu under Google Ads?

I have a weird effect : As you can see, the menu goes under the Google banner. I am searching something that could put the menu over the banner. You can see this effet live at : www.forexvirtuel.com. The code look like: ... <div id="navigation"> <ul id="nav"> <li class="page_item page-item-26"><a href="http://www.forexvirtuel.com...

CSS max-width with percent

max-width with a percent doesn't seem to work in either IE 8 or Firefox 3. Specific pixel widths work fine. Am I missing something? I have an input form, and I want to display some explanatory text to the right of it. But I don't want the explanatory text to squash the form. I haven't used max-width before but it seemed an excellent so...

designing web interfaces for mobile devices

How do you make your website look good in both a standard browser and on the various mobile devices available? Currently I am undecided between trying to make my layout resizable so that it will work for small devices, or providing a separate CSS for mobile devices. My use case is a chess game where I want the entire board to be availa...

Give a background a alpha in IE

ok, i have this code: <div style="border:5px solid rgba(0,0,0,0.5);background:#FF0000">yyyyy</div> but it won't work in IE because it doesn't support rgba(), so, how do i achieve the same effect? hopefully without images or more divs... ...

Table vs CSS-based layouts for web pages

Hi, I use HTML templates for my website from sites that sell templates as I'm not a designer and would like something ready, I use Rails for my development. I noticed that some sites design their templates as "Tableless" by using CSS and absolute posistioning of components in the page. I'm actually used to using tables in my pages. Wha...

font-size difference between opera and firefox

I found my page text displayed in opera and firefox with different font-size. <div id='kfbuttext1'> <a href='#' class='kfbutlink'>test string</a> <a href='#' class='kfbutlink'>line 2</a> </div> CSS as follows .kfbutlink{Font-family:arial; font-size:12px}. it looks fine it firefox but opera(...