html

wrap images in a div

I'm using the following CSS to display images side by side: #gallery { background-color: #444; padding: 10px; width: 520px; } #gallery ul { list-style: none; } #gallery ul li { display: inline; } #gallery ul img { border: 5px solid #3e3e3e; border-width: 5px 5px 20px; } #gallery ul a:hover img { border: 5px solid #fff; border-wid...

javascript regex: replace url text link with image,but not in html tags

Hi this is my pice of code: <div style="overflow: hidden; width: 445px;">[IMG]http://i29.tinypic.com/mydog.png[/IMG] tak si to http://i29.tinypic.com/mycat.png Lorem ipsum loremai <img width="15" border="0" align="middle" src="images/smejo.gif" valign="middle"/> <img src=http://www.example.com/index.png alt> <img sr...

Is there a de-facto relation between the font size ranges {1, 2, 3, 4, 5, 6, 7} and {xx-small, x-small, small, medium, large, x-large, xx-large}?

In HTML/CSS font size can be specified in the following fashion (deprecated but all browsers support it): <font size="n">text</font> with n an element of {1, 2, 3, 4, 5, 6, 7}. Another possibility is the following: <span style="font-size: s;">text</span> with s an element of {xx-small, x-small, small, medium, large, x-large, xx-la...

updating images in a ul list via jquery ajax

I have the following jquery code: jQuery(function(){ jQuery("select#rooms").change(function(){ var options = ''; jQuery.getJSON("/admin/selection.php",{id: jQuery(this).val(), ajax: 'true'}, function(j){ for (var i = 0; i < j.length; i++) { //what should go here? } }) }) }) from the serve...

Highlight all data in a HTML Table

Is there a way to do a selection highlight over all elements in a HTML Table? I want to be able to have data displayed in a tabular form, and the user to be able to click a button to select the relevant data to copy and paste into the spread-sheet of their choosing. ...

PHP: Allow users to make posts with certain tags

Users on my site can post news items. But right now, it's all honor system as far as HTML goes. function postNewsItem($subject, $body, $userid){ $time = time(); $subject = mysql_real_escape_string($subject); $body = mysql_real_escape_string($body); $q = "INSERT INTO news (subject, body, userid) VALUES ('$subject', '$body', '$use...

Event detect when css property changed using Jquery

Is there a way to detect if the "display" css property of an element is changed (to whether none or block or inline-block...)? if not, any plugin? Thanks ...

Image overlay circle over circle

First let me tell you what I want to achieve. I want a layout as below(Replace the squares with circles): |------------| | |-------| | | | button| | | |-------| | |------------| It is a button inside a circle image. The button should also be circular in shape. How do I go about doing it? As in, is there a way to overlay one circula...

Proper DOCTYPE... custom attributes and non-standard markup.

Ok, don't get me wrong, I absolutely love the idea of web standards... wrote and validated a number of pages with strict XHTML 1.0 - however, the web is evolving... and the more I use XML, realize the capacity of the DOM, and realize most browsers don't care one way or the other, the more I realize I realize I just want to break conventi...

jquery lightbox plugin while images are loaded via ajax

I have a page where I am loading bunch of images initially when the page loads. These images are tied to the lightbox plugin and when i click on the images..the plugin does do what it is supposed to. However, I have some ajax added via jquery (triggered by a drop down box) which updates the list of images based on what it gets from the...

Difference between id and name tag attributes HTML

Hi guys what is the difference between the id and name attributes? they both seem to serve the same purpose of providing an identifier. I would like to know (specifically with regards to ASP.net web forms) whether or not using both is necessary or encouraged for any reasons. Thanks guys! ...

Site loads on the right, then shifts to its actual position

There is a link at the bottom. Pretty much what happens, is when the page gets opened, it loads entirely on the right side of the screen. Then when it finishes loading every single element, it moves to the center which is it's actual position. I believe the problem is caused by javascript, since the site works perfectly fine without it...

Z-index over an img?

Consider this page @ http://www.bloodbone.ws/screwed.html I need to be able to have the a.grow element expand to the dimensions of the div.column-header so that if you target anywhere in the div the whole area is clickable. It works in Firefox + Safari, but I can't get it to work in any IE browser. The h2 and img elements always break...

What html/CSS/JS technology widgets does pagii.com use?

I am interested in creating a web page editor like the one used in pagii.com? It's unique among the web based editors I have seen in that it offers a great deal of customization. For example you can insert an image and drag it anywhere on the screen and resize it on the fly. The elements can be placed anywhere on the screen and layered i...

HTML: Title in the middle of the box

I would like to have the text My homepage in the middle of the box I made. I saw an example on a web site but this does not work properly, as the text is on the left. How can I fix the code? <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/1998/REC-html40-19980424/strict.dtd"&gt; <html> <head> <meta http-equiv="Con...

Converting content of text area into an array

I have a form with a text area in html. I want to get the content of this text area in php so that each line can be stored in an array. I tried using implode with'/n'. but its not working. how can i do that. Here is my code $notes = explode('/n',$_POST['notes']); ...

Html inside XML. Should I use CDATA or encode the HTML

I am using XML to share HTML content. AFAIK, I could embed the HTML either by: Encoding it: I don't know if it is completely safe to use. And I would have to decode it again. Use CDATA sections: I could still have problems if the content contains the closing tag "]]>" and certain hexadecimal characters, I believe. On the other hand, th...

<input type="button" /> and <button >,what's the difference?

I've not known that there exist such a tag as until today,a little shocked! ...

Partial Background images repeat in IE??

In my site, there are divs with repeated bg images. It renders smoothly in FF. But gets jagged in IE while scrolling the page. This is the image shot of the site: As you can see the image is self descriptive, the bg is not repeated smoothly. Now, when I scroll the page, the bg image is not shown at all. This is the shot of the site aft...

Linking from a https page

This sounds like it should be a common problem but I can find little solutions to it. Basically relative links on a https page (often found within controls and the master page) will obviously link to non-secure pages as https which is undesirable. A possible solution was to use the base tag in the head of the page to root all relativ...