html

html css in asp.net mvc default project

The default code shows the Home menu item aligned to the right. I changed the ul:menu and added attribute float:left to get the 'Home' menu too be aligned to the left of the page but to no avail. Is there way to show the 'home' menu to be on the left end of the page. I am trying to create a menu bar similar to SO as a learning project ...

Problem with Javascript and form duplication

Hello. I have a HTML code that goes something like this: < tr id="500" > < form id="500" onsubmit="DoThis()"> < td>Info< /td> etc... etc... < td>Info< /td> < /form> < /tr> What i am trying to do in Javascript is to make a copy of the element and add it to parent table: var TrElement = document.getElementById("500") v...

Weird html error...

I have a list of links that are exhibiting some really weird behavior. The code is: <ul id="home" class="panel" title="title_here" selected="true"> <li><a href="#search">Search for Name</a></li> <li><a href="#browse">Browse by Department</a></li> </ul> It is part of an iPhone site, using the iUI framework. I know uiUI is bette...

How wide is a text area column?

If I specify a text area on a web page X columns wide and I have a variable-width font, how wide is the text area? What is a column unit? Is it the width of the widest character? The mean width? Average? Or perhaps some width unit regardless of the font given? ...

How to handle different length of language in web page?

I found that some web page layout works perfect for English turns to be messy if another language is applied. The root cause is that some words in some language is too long and pushes other div's away from their best position. For example, <div style="width:40em; overflow: hidden"> <div id="div1" style="float: left">Bla Bla...

"Please wait ...", "Loading", "Saving", "Generating" Implementations

In the browsers using HTML, Ajax, or YUI (JavaScript in general) what are successful and preferential implementations of the 'please wait we are working on your request'? Additional context is that the Web Application I work on has a few requests that can require significant IO/CPU time (10 - 30 seconds) and has the need to communicate...

Freeze TH header and scrolling data

I have a html table and I want to freeze the header row th tag for scrolling the data. How I can do that? Does I need to use the Dom? Thanks !! ...

HTML/IE: stretch image to fit, preserve aspect ratio

In an HTML window, I am setting a custom body <img src="file://[filename]"> to display an image. Now I want to strectch the image to fit the available window, but preserve aspect ratio. <img src="file://[filename]" width="100%" height="100"> stretches but also distorts the image. Is there some HTML trickery to do that? IE only...

Are there any CSS lint tools?

I'm looking for a tool that can scan over a set of HTML pages, and check for bad or out of sync CSS usage. In particular, I want to check the following: Each CSS rule in the CSS files is used at least once by some HTML page. Each CSS class referenced on the HTML pages is actually defined in a CSS file. (Nice to have) that inline style...

How do I scale a stubborn svg embedded with the <object> tag?

I have some svg files that specifies width and height as well as viewbox like this: <svg width="576pt" height="432pt" viewBox="0 0 576 432" > ... but how to display them in the browser at a size I decide ? I want them smaller and have tried: <object width="400" data="image.svg"></object> but then I get visible scrollbars. It work...

Clipboard management with websites

Hello, I would like to know how to put text into the clipboard like some popular sites are able to do. I saw a cross browser way to do it using flash, but it wont work with the current version? I have seen sites like www.photobucket.com and www.hulu.com have made copying to the clipboard automatic and cross browser. Please help. Thanks ...

background image doesn't stretch full page width

Hi, On this page, I have a 2-tone background. The structure of the page is: <body> <div id="upbg"/> <div id="container"/> </body This background is achieved by adding a dark background image to upbg and a lighter background image on the body. The css for upbg is: #upbg { background: #FFFFFF url(images/bg-dark.jpg) repeat-x scr...

Is there a way to use CSS to highlight keywords?

Well, that's the context: I am editing a latex source file in google docs, and I wonder if I could use CSS to color arbitrary keywords and text enclosed in dollar signs. For example, given this HTML file: <html><body> \section{Heading 1} <br> This is a simple file with a formula $x_1 = x_0 + 1$. <br> Here it ends \cite{somebody}. </bod...

how can I realize something like this in CSS ans HTML ?

how can I realize something like this in CSS ans HTML ? <bod> <div id="corner"> <div id"link_img"></div> <div id "link_text">LINK</div> <div> <bod> http://img7.imageshack.us/my.php?image=linke.jpg ...

XSL character escape problem

Hi, I am writing this because I have really hit the wall and cannot go ahead. In my database I have escaped HTML like this: "&lt;p&gt;My name is Freddy and I was". I want to show it as HTML OR strip the HTML tags in my XSL template. Both solutions will work for me and I will choose the quicker solution. I have read several posts online...

How do I redirect to a html page and pass variables to that page in Java?

Hello all, I have a form on my index.html page which makes a POST request to a Java Servlet. This servlet does some processing and I would like to redirect back to index.html with some variables that the servlet has produced. In PHP, it would be as simple as: header("Location: index.html?var1=a&var2=b"); How can I acheive the same w...

PSD to HTML (with text) conversion

Hi, I just downloaded a website template that is in a .PSD form. I have made the changes via photoshop, setup the splices then clicked "Save for web devices". I export the website and I get the images directory and the html file. All ok so far. I next open the html file using dreamweaver. My question is what is the best method to...

HTML Button Style

how could i get a button to look like the "Check It" button on this page http://www.intus.co.za/ ...

Programmatically selecting partial text in an input field

How can I programmatically select a specific range of text in an HTML input field? (I don't want to select the entire field, just a subset) Also, how can I determine the currently selected range in a field? ...

Styling HTML SELECT in Internet Explorer

Any way to customize the border and background of an HTML SELECT in IE? I can style the border with simple CSS in Firefox, but apparantly not in IE. ...