html

How do I provide info to Google about interesting/important pages on my website?

For an example of what I mean, search on Google for "Last.fm". The first result will be www.last.fm and 8 additional links are listed; "Listen", "Log in", "Music", "Download", "Charts", "Sign up", "Jazz music", and "Users". I looked around in their HTML but couldn't figure out where this information was supplied to Google. Any help? Tha...

Embed SVG into HTML (Opera-specific).

I want to embed SVG image into UserJS script for Opera. The question is how to show this image on loaded page? I show PNG images using <img src='data://image/png;base64,...'>, but SVG images aren't shown being used this way. Using external SVG file is OK, but not 'data://image/svg+xml,...'. I can't embed SVG code to HTML directly, beca...

Center contents of webpage

I want to "centerize" the text and contents of my webpage. Now I don't want to align the text to center, I still want a left alignment but I want significant margins on the left and right so that everything looks relatively center-ish. Can you show me the HTML/CSS to achieve this? THanks. ...

Escaped characters in meta title/description/keyword content.

Do any search engine [spiders] take issue with escaped special characters in a page's meta tags, or do they all generally interpret them correctly? I suppose a quintessential example would be: &amp; => & ...

Submit returning the entire page's HTML

Hi, When i submit a FORM on my page, my "response text" returns the HTML of the entire page and not only the FORM that submitted. This is normal? ...

css 100 % height bug

When I resize window and when vertical scrollbar appears, if I scroll it way to the bottom, - the bottom breaks. I dont understand why, but I think it has something to do with the way how page uses 100% height. Any help would be appreciated! Here's the page: zxsdesign.com/main1.html Here's a screenshot ...

How Does an HTML Form Post to an exe application?

I am just wondering how a web site posts information to an exe and how that exe grabs that information and outputs it using a template html file. The code on the web side looks something like this: <FORM ACTION="scripts/fetch.exe" METHOD=POST NAME=somename> <INPUT TYPE=TEXT NAME="id" WIDTH=30> <INPUT TYPE=SUBMIT NAME="nothing" VALUE="...

Input button embedded in anchor tag not working in IE

DUPLICATE: http://stackoverflow.com/questions/802839/my-links-dont-work-in-ie-but-do-in-firefox Hi, I have the following code that works in FF but not in IE, can anyone tell me why that would be? <a href="ContentAdmin.aspx"><input type="button" value="Cancel" /></a> ...

Why do my images not load consistently in my HTML page?

I currently have a website which contains on the main page a list of articles that each one of them has an image next to it. the images are from various different websites. sometimes some images are not loaded, when i check the url of that images it's fine, and when i refresh the page it loads all of them. Is there a way to ensure that ...

Does anyone have a script to automatically generate image tags from a directory of images?

I do a lot of slicing in Photoshop, and it's tedious to manually write an <img /> tag for each of them -- writing in the filename, checking height and width, writing the alt tags, etc. I can use Photoshop to generate the HTML, but they usually muck it up by not producing XHTML, or by wrapping it in tables, and so forth. I'm trying to m...

Modify html output at server side in ASP.NET

A third-party's webcontrol generates the following code to display itself: <div id="uwg"> <input type="checkbox" /> <div>blah-blah-blah</div> <input type="checkbox" /> </div> Is it possible to change it to <div id="uwg"> <input type="checkbox" disabled checked /> <div>blah-blah-blah</div> <input type="checkbox...

Display JSON as HTML

Any recommendations on how to embed JSON in an HTML page with the JSON formatted in a human readable style? For example, when you view XML in a browser, most browsers display the XML formatted (indented, proper line breaks, etc). I'd like the same end result for JSON. Color syntax highlighting would be a bonus. Thanks ...

Triggering buttons in contained iframe

I have an HTML + javascript page that embeds a page in an iframe. I would like to be able to trigger a submit button (which causes a POST) within the embedded page using javascript in the enclosing page. Is there a library already doing this? ...

JavaScript to add HTML tags around content

Hi, I was wondering if it is possible to use JavaScript to add a <div> tag around a word in an HTML page. I have a JS search that searches a set of HTML files and returns a list of files that contain the keyword. I'd like to be able to dynamically add a <div class="highlight"> around the keyword so it stands out. If an alternate searc...

Make ul elements appear in a horizontal row.

How can I make a ul list's item appears horizontally in a row using CSS? here is code <div id="div_top_hypers"> <ul id="ul_top_hypers"> <li>&#8227; <a href="" class="a_top_hypers"> Inbox</a></li> <li>&#8227; <a href="" class="a_top_hypers"> Compose</a></li> <li>&#8227; <a hre...

Position an image outside of its container

I have a major headache trying to get an image that is contained within a div to appear to float outside of its containing element. While I'm pretty sure this just isn't possible, I want to be sure I've exhausted all avenues before telling designer and client that they're just not going to get it to look exactly as outlined in the desig...

CSS : Margin Auto

Hi folks, how to fix the margin spaces on IE? Here the code. IF you open this file on modern browser all working great and will have a space for 20px on the bottom. But in IE nothing space. Let me know the trick to fix this thing. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tr...

HTML input type = file in Adobe AIR does not present file browser

So the good old HTML file uploader tag only presents a browse button (without associated text input) when rendered in a HTML based Adobe AIR application. Upon clicking the browse button, nothing seems to happen. I would expect a popup window so I can select a file. I've seen examples of people using Javascript to call the AIR runtime...

window.onload() is not firing with IE 8 in first shot

Hi all, I am trying to make my pages work correctly with IE 8, I found out from here: http://www.masykur.web.id/post/How-to-Make-Our-Website-to-be-Ready-for-IE8.aspx that, my page has to be XHTML 1.0 compliant and atleast CSS 2.1 compliant, I made my page and CSS compliant with only few warnings, but still window.onload() is not firing....

A public open source HtmlHelper repository for sharing "controls"

After using the MVC framework for a little while now I must say I love it, but in my opinion there has always been one thing that poops on the MVC party cake. The lack of good, reusable and portable "controls". This is where the HtmlHelpers should kick in. After reading this blog post I started thinking about what exactly I’m expectin...