html

Make content at the right most in a div tag

Hi all I have some html snippet <div id="title">This is title<span id="close">X<span><div> The width of this div is dynamical, maybe 300 600 or 800 px. I want the "X" at the right most of the div at the same line. So write a css like below: #close { margin-right:10px; } But it does not work. If I want to implement it, what sho...

Problems with my HTML/CSS

Note below is my CSS. This is a three column website. my main content is in the center. The problems that I am having is that my main content does not adjust correctly to IE. It is fine in FF but not in IE. .columns3headers2 #mainContent1 { margin: 0 22% 0 24%; width: 570px; background-color: #DDDDDD; height: 370px; padding: 0...

Use javascript to get the style of an element from an external css file

I have a html like this: <html> <head> <link rel="stylesheet" type="text/css" media="all" href="style.css"> </head> <body> <div id="test">Testing</div> <script> alert(document.getElementById('test').style.display); </script> </body> </html> The style.css: div { display...

Why is Window.open()'s return type void ?

Doing something like this is perfectly permissible in javascript: var newWindow = window.open(...) However, this does not work in the senario of GWT (I am using 1.5 I dont know about later versions), Window window = Window.open("", "", ""); Throws me a compile time error that the open is a method with a return type as void. Why sh...

need explanation about bookmarking

I got stumbled upon this issue once and I guess I need some expertise in getting through this .." some links that one likes to bookmark ." I tried browsing and got confused. is bookmarking just means the use of CTRL + D. Or is ti something like the one in this link . ...

Stream data with Node.js

I want to know if it is possible to stream data from the server to the client with Node.js. From what I can understand all over the internet is that this has to be possible, yet I fail to find a correct example or solution. What I want is a single http post to node.js with AJAX. Than leave the connection open and continuously stream dat...

How can I create PDF output from rrdcgi?

I have created a rrdcgi script to display information about the system performance with graphs. Now I would like to add an option for the users to create PDF on the fly with the details on current page (images and information) and header and footer. I also want the generated PDF files to be saved in some location so that that can be easi...

what is the best way to ensure html/css code or layout works on all browsers?

hello all what is the best way to ensure css/layout code works on all browsers? my css code work on firefox fine but does not work fine on IE are we have to we test with all browsers? are there any tools for test and show result and if correct my code for all browsers? ...

Measuring the process time after clicking a link

Hi, I want to download a document from a server. Creating the document in the server takes some time, and I need to measure the time it takes from clicking the link to the end of the download process at client side. (or to the beginning of the download?) Any way for this? Thanks ...

javascript evaluated width in a nowrap element

I'm trying to develop a newsticker plugin, while i was making the sliding part i got an issue with calculated width, all seems to be correct but when i get into the strip where i should calculate the width to slide the inner content i get a width lower than what i expected. The mask has right offset width, but i can be sure if inner con...

Transparent div containing non transparent content - IE 6 height:100% not working

Hey there! I have a bit of a sticky IE 6 problem (don't we all?). I figured out what I think is a pretty neat way to have a div with a transparent background that shows the background's body image and containing non-transparent content. This consists of three divs really: One big container div, one absolutely positioned transparent div...

margin between content and div overflow scrollbar

I am using the following bits of code to keep my menu items fixed while allowing for the scrolling of content because it seems to be the most stable method across all browsers. body { overflow: hidden; } div.content { height: 100%; overflow: auto; } My problem is simple, and yet I can not seem to figure it out, the content inside t...

Set website to display in 150px by 150px in an iframe

Hello, I have the code <iframe width=150px height=150px src=http://yahoo.com&gt;&lt;/iframe&gt; Here I will have a 150x150 iframe, but I want the whole site to be reduced to a 150x150. Is it possible to do it. Thanks Jean ...

I have JavaScript code at the bottom of the page but images still load after?

I'm referencing my JavaScript files before the closing body tag, hoping they will be parsed last (as they're not needed until last). However when I analyse activity with PageSpeed in Firebug, the images seem to be requested last. How can I make the images higher priority than the JavaScript code? ...

id vs class selection benchmark

Has anybody bench marked selecting elements with id's and class's from CSS and javascript? It would make sense that an element with an id is faster to select than if it had a class even if it was the only element with that class. Do I really need to be concerned? ...

Vertical centering text (jQuery)

<div style="width: 100px; height:50px; line-height:50px; overflow:hidden;"> <p>A short line</p> </div> <div style="width: 100px; height:50px; line-height:50px; overflow:hidden;"> <p>A really really really long line</p> </div> Wrapped text in the second example gets cut off because of the line-height:50px which should be 25px i...

CKEditor adds html entities to inline CSS. Is the CSS still valid?

I have this piece of code: <table style="background-image: url(path/to_image.png)"> And when I load it in CKEditor it's transformed in: <table style="background-image: url(&quot;path/to_image.png&quot;)"> Is this still still valid CSS? Actually I'm not so interested if it's valid but if there would be any problems with any web bro...

Javascript execution order

I want to give a static javascript block of code to a html template designer, which can be: either inline or external or both used once or more in the html template and each block can determine its position in the template relative to the other javascript code blocks. An example could be image banners served using javascript. I give...

html newsletter email arriving as an attachment

Hello, I'm using C# to send email newsletters for subscribers. There's no problem with sending the email but some email clients like outlook and hotmail receive html newsletter as an attachment and the email body contains only plaintext with html tags removed and some clients like gmail receive the email just fine. What actually creat...

Where can i find good documentations about HTML5

I'm looking for good documentation about HTML5 does anyone know where I can find this ? ...