html

HTML: Tab space instead of multiple "nbsp" ?

I would like to know if it's possible to insert a tab character in html instead of having to type   four times. ...

strip word document for formatting but not images?

I need to add a bunch of word documents to a wiki but want to clean up the resulting html so ideally I have text and image tags... Anyone up for a challenge? :o) It's ok if the solution involves using a text editor and doing some "gymnastics" on it. ...

question regarding php function preg_replace

Hi, I want to dynamically remove specific tags and their content from an html file and thought of using preg_replace but can't get the syntax right. Basically it should, for example, do something like : Replace everything between (and including) "" by nothing. Could anybody help me out on this please ? ...

Background image of h tag being centered in IE

Strange issue that I'm not exactly sure about...also, please feel free to correct me if I am going about the SEO incorrectly, as it is relatively new to me. I have a few h3 tags that I am replacing with images to make them a bit prettier. I still have text in between the tags, but I have made the font-size 0 in hopes that the search spi...

Simplehtmldom - curl, loops, arrays?

Hello. Pse forgive what is most likely a stupid question. I've successfully managed to follow the simplehtmldom examples and get data that I want off one webpage. I want to be able to set the function to go through all html pages in a directory and extract the data. I've googled and googled but now I'm confused as I had in my ignora...

Find out added swf from a document.

Hi, I am adding multiple flash objects(swf) in HTML. When I try to find any of these objects (using 'document[swf_id]'), the browser returns 'null' unless the object of interest is acted upon. (Implicitly as I understood, I would always get 'null' if I have interacted with none of the objects). Can somebody help me to know the reason? ...

resize a image in an href link

looking at the code below, i can show an image with a smaller size <a href="images/image.jpg"><img src="images/image.jpg" width="300" height="214" border="0"></a> but what if i want the href link to show the image with a smaller size as well. so lets say the original image.jpg is 1500x1200 and in the link i want to show it 800x600. ...

Are there any GUI toolkits built on top of HTML Canvas like swing,swt,gtk or qt?

Are there any GUI toolkits built on top of HTML Canvas like swing,swt,gtk or qt? So that it is possible to build applications like applets or flex gui:s inside the html canvas. ...

Why is it bad to just have one big picture as your homepage?

When designing my homepage, I feel like the common knowledge is that it is bad to just have one big picture in the center that gives all of the content. The "right" way to do it would be to chop up the large layed out image into several small backgrounds and make the text use standard html with css background images for layout. Is the ...

HTML: What determines the 'move the focus to the next control when Enter is hit' behavior

A basic HTML question. Is it possible on an HTML page to declaratively achieve a behavior when pressing Enter in a textbox moves the focus to the next control? How do you achieve it and how do you turn it off? Or maybe the dynamic javascript part should be involved here? For exaple, the following HTML in IE7 does not allow to move to th...

Extract filename from HTML text using regexp

I have this HTML code (just an example): Sem vestibulum blandit nostra, nullam imperdiet, pellentesque vel wisi sit fusce purus mi, porttitor lorem. Bibendum non phasellus ut ipsum massa sed, interdum per, facilisis facilis luctus fermentum et donec, tristique tristique non.</p> <p align="justify"><a class="nemo" href="http://myserver.c...

Search server for image and display it

Hi.. The user on my site can currently search a mysql db via PHP, and the results are displayed on the same page inside a DIV, thanks to ajax... What I need now is to display an image that is associated with the mysql results... Say the result has ID=250, then I want a piece of code to search in a folder for an image with the name 250....

Facebook Connect API not populating user data when facebook-logo="true" option is used

Hi folks, I'm working on a Facebook Connect app. I have the Connect button up and running and users can successfully authenticate via Facebook. However, I'm having trouble getting their profile picture and name to display with XFBML. Here is what I'm doing: <script type="text/javascript"> function fb_login_handler() { var userbox ...

HTML form POST to default document (w/o specifying Default.aspx) fails with "405 Method not Allowed"

When an HTML form is posted to a website without specifying the actual page name, it doesn't work. Non-working code <form id="userinput" method="post" action="http://website1/"&gt; Working code <form id="userinput" method="post" action="http://website1/default.aspx"&gt; 'Default.aspx' is the startup page for this website (configu...

Web Development: How can I allow a user to upload files directly to my CDN (Cachefly)?

I have a PHP web-application that allows users to upload images to my web site. I'm doing this using a simply HTML <form enctype="multipart/form-data"> However, instead of having those images uploaded to my web server - I would to have those images uploaded directly to my CDN (Cachefly - which is another server). Is this possible ... t...

Firefox does not render width and height properties of the A tag as expected

My goal here is to make a button. I want the text to sit vertically in the middle of the image, and horizontally offset by 22px. The image is 144px by 29px. Here's the code: CSS: <style type="text/css"> a.button{ width:144px; height:29px; background-image:url('images/btnOff.gif'); color:#000; text-decoration:none; line-height:28px; pad...

Checkbox not checking inside div in Firefox

Weird problem. I don't know if anyone can shed some light on this? I have a checkbox inside a div. It works fine in IE but not Firefox. I have to click the space around the checkbox that is occupied by the div (sort of like a label) for the checkbox to tick on and off. Directly clicking the checkbox does not show it as ticked on or of...

Looking for something similar to AdRotator in .NET

Hi, I'm working on a website that has a rotation of testimonials. I need something that is similar to the AdRotator class in .NET. However instead of rotating images I'd like to rotate text blocks which are formated with HTML/CSS. The source can be an XML file just like the ad rotator but I need three elements. Quote Author Name Author...

How much faster is it to use inline/base64 images for a web site than just linking to the hard file?

How much faster is it to use a base64/line to display images than opposed to simply linking to the hard file on the server? url(data:image/png;base64,.......) I haven't been able to find any type of performance metrics on this. I have a few concerns: You no longer gain the benefit of caching Isn't a base64 A LOT larger in size than...

Make div 100% height of browser window

I have a layout with two columns. Left div and a right div Right div has a grey background color, and I need it to expand vertically depending on the height of the user's browser window. Right now the background color ends at the last piece of content in that div. I've tried height:100%, min-height:100%; etc. Doesn't seem to work. H...