html

Can I force a page jump in HTML printing?

I'm making a HTML report that is going to be printable, and it has "sections" that should start in a new page. Is there any way to put something in the HTML/CSS that will signal to the browser that it needs to jump to a new page at that point? I don't need this to work in every browser out there, I think I can tell people to use a spec...

Encode quotes in HTML body?

Should I encode quotes (such as " and ' -> &rdquo; and &rsquo;) in my HTML body (e.g. convert <p>Matt's Stuff</p> to <p>Matt&rsquo;s Stuff</p>)? I was under the impression I should, but a co-worker said that it was no big deal. I'm dubious but I can't find anything that says it is verboten. Am I mistaken? Is it a best-practice to encode?...

Easiest way to fetch all href contents on page in Ruby?

I'm writing a simple web crawler in Ruby and I need to fetch all href contents on the page. What is the best way to do this, or any other web page source parsing, since some pages might not be valid, but I still want to be able to parse them. Are there any good Ruby HTML parsers that allow validity agnostic parsing, or is the best way j...

Cufon Styling for main navigation

In this website: http://theoew.uuuq.com/portfolios/Idea/ I use Cufon to style the text for the the main navigation. I have use this html code for it. <ul id="mainnav" class="alignright"> <li class="active"> <a href="#"> <span>Home</span> <small class="active">main page</small> </a> </li> <li> <a hr...

Have a delete button exaclty where I want it....

and it's linked to a 'confirm comment deleted page. Ideally I would like it to just become erased and have the page reload with it gone, and then send it to my db marked as dead. Basically, users have a profile which allows other users to make comments.With the help of PHP I would like to be able to have the delete button only show up ...

Set div height to 100% of parent

I want the following layout for my web page: | header | | navigation | details | | | | Where the navigation pane (content dynamically generated) contains hundreds of elements. I want a vertical scroll bar to be created on the navigation pane such that the pane has the height of the window minus the hei...

IE7 context menu options for javascript links

In IE8, Safari, Chrome and Firefox if I right-click on the link the new tab and new window options are disabled. Right-clicking the link in IE7 still has these two options enabled. Is there any way to disabled these options in IE7 for javascript links? Sample Code: <html> <body> <a href="javascript: alert('Hello');">Javascript link</...

Core HTML/CSS/Javascript Frameworks

I'm trying to improve my web development skills. I'm already familiar enough with HTTP, HTML, CSS, and Javascript, but I'd like to take advantage of some frameworks/helpers for site layout, CSS, and Javascript support. What are the best HTML/CSS/Javascript web tools/frameworks out there? (In this question, I'm not looking for scriptin...

jQuery append html doesnt work after first

So I'm sorry the title is so vague I'm not really even sure how to word this question in just a few words. So I have a form for adding items to a webstore. Within that form is the option to add different varieties of a product, say different sizes or colors for clothing, etc... I wanted to only offer a field for the first variety onloa...

Fancybox jquery multiple popup boxes

Hi all, I am using this http://fancybox.net/example for my code. <a id="view1" href="#box1">Click1</a> <div id="box1" style="display:none;"> <a id="view2" href="#box2">Click2</a> </div> <div id="box2" style="display:none;"> </div> I implement fancybox on a#view1 and a#view2 so that when people click on Click1 it will open fancybox...

How to simulate click on (x, y) point of HTML document with Yahoo UI (JS) ?

DOCS http://developer.yahoo.com/yui/3/event/#eventsimulation . but I do not understand how to do it( So how to simulate a mouse down at point ( X, Y) in the client area of some HTML Object with YUI? ...

Is using /file.php in an anchor link ALWAYS going to resolve to http://thedomain.com/file.php?

Hi, from my testing, this is true, but i just want to make sure it is a standard and not just coincidence that all browsers ive tested it in it works basically, i have a page on http://domain.com/sub/dirs/1/2/3/page.htm which has <a href="/home.php"> will that always link to http://domain.com/home.php ? and of course will li...

opening a tiff image in IE

Hi, Is it possible to open Tiff images in IE, just like BMP opens in IE. When i try to assign an iframe source as a tiff image it pops up a save dialog. i want to display tiff image inside an IE page. Following is a sample which i was trying <iframe src='C:\Users\XYZ\Desktop\Untitled.tif'; id ='hello'></iframe> ...

How to remove extra margin-bottom from floted image ?

When we use <img> inside <p><img style="float:left">dummy text dummy text dummy text dummy text</p> the how to give same margin at right and bottom of the image. http://jitendravyas.com/image-margin.htm ...

[HTML/Firefox]: When website opens, Firefox asks to download the page.

My website is working fine on IE, but when I open it on Firefox, Firefox asks to download the same page and opens the Download File dialog. This problem occurs sometimes in Safari also. For example, if I type in the URL as: http://www.example.com/news.html Firefox opens a dialog to download "news.html". Whereas, it works fine in IE. W...

Validating user authentication for all page

Hi all, I am using the HTML page on front end PHP for server side scripting. now the problem i have configuration page which can be loaded by disabling javascript on Mozilla setting. Since i am using cookie to validate on the javascript For avoiding this i need some thing i can call some php script onload without intimating user and v...

Selecting an element without an Id.

I'm trying to select an element from my webpage... I have inserted a control into my page and i need to set some values an element inside the control at pageload from c# code.. The thing is, as soon as I insert the control into the page... A prefix is appended to the id name... Because of that new name, my css definition won't be appen...

Is the rel attribute usage compatible with all browsers and tags

Just to be sure it can be safely used with JQuery scripting. ...

Changing select highlight color

How do I change the highlighting color of <select> that is the color that highlights <li> while cursor passes over it by using CSS. ...

How do I center a label in a div ?

Hi, I have a div with a height of 30px I want to add plain text to this div, but the question is - how can I make the plain text appear on the center of my div ? i.e, the text will be shown 15px under the top of the div. I tried a label with margin-top:15; but it didnt work Any suggestions ? thanks! ...