html

Centering Problem

I cant seem to get this to work. http://www.keironlowe.host56.com What I need is the banner with the low opacity image on it to be centered no matter the resolution, Ive tried a wrapper but because the wrapper is a width of 800 it cuts of the image, i've tried margin:0 auto; and i've even tried using the tag but it still doesnt center...

PDF file generation from XML or HTML

Are there any API/solution to generate PDF report from XML file data and definition. For example the XML definition/data could be: <pdf> <paragraph font="Arial">Title of report</paragraph> </pdf> converting HTML to PDF will also a good solution I feel. Currently we write Java code using iText API. I want to externalize the code s...

My autogenerating xml sitemap code works very slowly, could I improve its performance ?

I have written an autogenerating sitemap code below, it is called every 12 hours. It looks through the mysql database, and then generates the input into the xml file for every row it finds in the mysql table. I am not the best PHP coder, so I hope you guys can help me improve this below. It works and does the job, but having over 400th...

CSS HTML Multiline navigation examples

I am creating a horizontal navigation for a web site. Below is an example of the markup (I have little to control on this as it is being generated for me). <div id="menu"> <ul class="menu"> <li class="menu"><span><a>Link 1</a></span></li> <li class="menu"><span><a>Link 2</a></span></li> <li class="menu"><...

Making a div smaller than its contents

I'm trying to show a div on a webpage, with mostly text. I would like to know if I can make it smaller so that not all the contents are able to be seen. (Javascript would make it larger later on.) ...

select country first from a dropdown menu, then region and then city?

im using html SELECT to make 3 dropdown menues. one for a list of countries, one for regions and one for cities. they all have different tables in the database and they are linked to each other with foreign keys. i want to force the user to first select a country while the other two menues are locked. when he has selected a country he ...

How to populate DropDown on page load?

I want to populate a DropDown control on page load using AJAX. I have the code and it is working, but I am not following as to which event to use. ...

Inconsistent page layout :(

My page is altered after loading by a lot of jQuery to get the layout I want. (Decision based alignment etc.) But at first when I load it it doesn't work (messed up alignment). I close it, follow the link to the page and it works perfectly. But then I refresh the page (F5) and it's messed up again. And it seems to function differently on...

Unicode support in Web standard fonts

I need to decide whether to render geometric symbols in a web GUI (e.g. arrows and triangles for buttons, menus, etc.) as Unicode symbols (MUCH easier and color-independent) or GIF/PNG files (lots of hassle I would like to avoid). However, I have seen Windows clients that have trouble displaying even advanced punctuation symbols declare...

Non Rectangular CSS Image Links

I have the following requirement: A large image contains several 'hotspots' that need to link to other pages. Sounds simple. I have created a simple html page, a div with the background image and absolute positioned links using CSS with image sprite rollovers. However, I have now been presented with another image and the hotspots are n...

It looks like a button, but it is not an input element. How can such an element be created?

It looks like a button, but it is not an input element. How can such an element be created? ...

should meta-tags be in utf-8 or doesn't it matter ?

Should I write the meta-tags in utf-8 format? For example, is it okay to have double-quotes in the meta-keywords like this: 19" wheels or special characters like the & sign... ? Thanks NOTE: Im using utf-8 encoding on all my pages! ...

Why does some html beginning-tags end with a forward-slash ?

This is probably a rookie question, but I need to know what I need to know :) Why does some html beginning-tags end with a forward-slash ? For example this: <meta name="keywords" content="bla bla bla" /> Whats that last forward slash for? What happens if I remove it? Also some other tags have this as well... I have removed some wit...

After deleting Silverlight app's host init-event fires again in IE

When I delete html node with silverlight 2.0 app inside, Init event fires again (only in in IE, but not in FF). How can I cope with this strange behaviour? Any help would be appreciated. Thanks. ...

How can I make this string from a 'textarea' to be on one single line ?

I have tried and tried and tried now. I have a mysql field (TEXT) which contains the value of a textarea. That is, if the text is written EXACTLY like this: Hello. Hello. Hello. Hel lo. Then thats how it will appear in the mysql field because Im using wordwrap and nl2br functions when inserting it there. Now, I am creati...

HTML: iframe positioning

Hi, How can I "divide" a page up into a series of iframes and position them in this sort of fashion: http://img81.imageshack.us/img81/4605/layoutew.jpg where each "box" is a scrollable iframe, in my case containing a scrollable list of "Genres" in the first top-left pane, then "Composers" in the middle pane, etc. (NB: it's only really th...

Convert Plain Text Links to HTML links with regular expressions

I need regular expression that converts links in plain text to HTML links. Here are the following test links: http://www.a-domain.com/something/?something www.a-domain.com/something/?something The regular expression should also work under the following assumptions: Anything attached to the URL that isn't a part of the URL (a comma ...

Javascript variable scope in addEventListener anonymous function

When clicking on each div it should alert '1' if div 1 was clicked on or '5' if div 2 was clicked on. I have tried to make this code as easy to as possible because this is needed in a much larger application. <html> <head> <style type="text/css"> #div1 { background-color: #00ff00; margin: 10px; padding: 10px; } #div2 { background-color:...

how I can extract images from html code and then validate if are stored in my web server

I've been working on a post editor, I want to generate thumbnails from all images inserted on the html code, so, before to do that I want to get all basic image attributes example: $mydomain = 'mysite.com'; $htmlcode = <<<EOD <p>sample text</p> <img src='/path/to/my/image.ext' width='120' height='90' /> <hr /> <img src='html://www.mys...

Both columns same height as deepest column?

If I have a div layout like this: <div id="stretchyheader"></div> <div id="fixedwidthwide"><div> <div id="fixednarrow></div> <div id="footer"></div> Which makes something like this: ----------------------------------------------------- | stretchyheader | ---------------------------------------------...