html

repeat-y layout issue

update: at bottom I am trying to get a layout working where the body background image is also the background for the first 123px of the main content div. I then want to put a background on the main content div (starting at 123px) and then fill down. However repeat-y obviously fills both up and down and therefore repeats over the top of...

Interesting html glitch in jquery variable with characters like &, /, etc.???

Hi, I'm trying to add html around div contents that my jquery function returns after the ajax request. It does work and adds a little of the html code I've added but upon submitting the "new" modified data with the addtnl html... it strips out this "&aoe=1&q=90" and other parts of the html code that include the & symbol and //? var ur...

Scroll Bars have vanished after adding a Google Map to a page - how do I get them back

I have just been implementing a google map, that pulls data from the yelp API. All fine, apart from I've noticed that the scroll bars on the page have dissappeared. Problem exists in FF and IE on Mac and PC. Take a look - http://bhx-birmingham-airport.co.uk/pages/hotels.php What do I need to do to get them back? ...

Telerik GridNumericColumn direction problem

I'm using a telerik RadGrid with direction RTL. I have a telerik GridNumericColumn and the problem is that it shows numbers this way: 500- instead of -500 can someone give an advice ? ...

Html adding line numbers to textarea

All, I have a textarea as in code below, how to display the line numbers on the left hand side of it. Is there a jquery plugin? <TEXTAREA name="program" id="program" rows="15" cols="65" ></TEXTAREA> Thanks..... ...

height: auto; doesn't work with firefox

I have Div Container with css class: .content4 { height: 1400px; width: 920px; border: 1px solid #CCCCCC; background-color: #FFFFFF; padding-bottom: 25px; padding-top: 25px; background-image: url(../images2/bg.gif); } and i need to make it auto height for its content its working properly in IE b...

Random border colours

I'm in the middle of theming a tumblr site, and each image posted is contained within a ".photobox" class. Is there a piece of javascript or jQuery i can use to change the "border-color" attribute of ".photobox" in the CSS to a random color - preferably chosen from a list of pre-defined colours? I've found one or two scripts on here but ...

Doesn’t the following design just complicate the logical structure?

Hi I’m reading some Html code for a web page, where author essentially wanted to create a page with header, footer and content area. The content area would be divided into three columns with center column having the right and left margins set to 200px, and these two margins are to be filled by two other DIVs docked on the page border ...

Need some help with making this function...

I have a php page where users may enter data into fields inside a form. The form also has a picture upload utility. This page is refreshed every time a new picture is uploaded, so to 'remember' the values the user ALREADY has filled in, I have this code: <input type="text" value="<?php echo @$_POST['name'];?>"> This DOESN'T work for d...

Is it possible to bookmark an alternate URL

When a user tries to bookmark one of my pages, I really want it to bookmark a different URL (in my case a tel:// URL -- on the iPhone). Is there a meta tag or something I can use to specify that the browser bookmark an alternate URL? ...

jQuery animation / hover and fade

This is my index.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd&quot;&gt; <html> <head><title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="style.css" rel="stylesheet" type="text/css" media="all"> <script type="tex...

Is preventing XSS and SQL Injection as easy as does this...

Question: Is preventing XSS (cross-site scripting) as simple using strip_tags on any saved input fields and running htmlspecialchars on any displayed output ... and preventing SQL Injection by using PHP PDO prepared statements? Here's an example: // INPUT: Input a persons favorite color and save to database // this should prevent SQL i...

Generate Raw String Meta Description for HTML Page from HTML String in Ruby?

I'm looking for a way to convert text like this: " <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"&gt;\n <html xml:lang=\"en\" lang=\"en\" xmlns=\"http://www.w3.org/1999/xhtml\"&gt;\n \t<head>\n \t\t<title>My Page Title</title>\n \t\t<META HTTP-EQUIV=\"Content-T...

PHP: How to strip HTML tag while allowing < and >

Question: How do I strip HTML tags but allow the greater and less-than sign using PHP? If I used PHP's strip_tags() function, it doesn't quite work: $string = '<p>if A > B</p>' echo strip_tags($string); // if A B // but I want to output "if A > B" UPDATE Basically, I only want to allow/display plain text. ...

overlapping divs in my HTML template?

I am designing a few templates for my website. I am laying the divs out and specifying the height and width of each. I have a large container div named main_cont. Within the 'main_cont', I have three (3) container divs named 'cont_left', 'cont_center', and 'cont_right'. Each one of those divs have three divs within them named left_1, le...

Using Images in flex/flash html controls

Using the flex text area I am trying to put an image inside a list. Whatever I do, the image is pushed to a new line. If anyone has dealt with this before would more than appreciate a pointer as to whether it can be done. The html is below. I want to show text and the image on the same line in list item 2. I have taken some of the forma...

Content on site stacks when browser is resized.

Does anyone know the best solution for this? When i resize my browser some content gets pushed around and stacked. Here is the site: http://wildfire-restaurant.com/ ...

IE CSS DIsplay Issue

Hi, The products on the below page are getting displayed correctly in FF, Safari and IE8: http://www.toomanydesigns.com/thefix/top10_watches/ However, IE6 is having issues. Does anyone know what I need to do to get it to display correctly in IE6? Thanks ...

How to deal with html excerpt?

It introduced a lot of non-closed tags like below: <div> <table>...</table> The </div> is truncated by code like this: (strlen($row['body']) > 200 ? substr($row['body'],0,200) . '...' : $row['body']) And the layout of the whole page is broken,how to deal with it? ...

designing webpages in ASP.NET

Possible Duplicate: Does anyone beside me just NOT get ASP.NET MVC? I dont know ASP.NET very well ATM. I took a look at MVC 2 in 2010 beta2 and notice my host will not support it. Since my app is heavily backend base and a light interface i thought regular ASP.NET should do a find job. In either case i find it extremely annoyin...