html

Is possible to make a <div> writable by user?

hi have to build a system that when a user write in a box a word that starts with # this is wrapped inside an html element. Inside input-text and textarea html don't work. I had thought with a div, is possible? ...

Auto center with CSS with one exception

I have a design like that: All my auto centered content has the following CSS: width: 960px; margin: 0px auto; Inside this auto centered content is a DIV-Element that should have a width of the full browser width. What's the best solution to make the 100%-DIV? position: absolute /* or fixed */ is not that what I want to have, beca...

php variable in html no other way then: <?php echo $var; ?>

hi i work a lot in mixed html and php and most time i just want solid html with a fet php variables in it so my code look like this <tr><td> <input type="hidden" name="type" value="<?php echo $var; ?>" ></td></tr> wich is quite crap isnt there little code something like: <tr><td> <input type="hidden" name="type" value="$$var" ></td><...

detecting javascript disabled using prototype

Hi All, how can i detect whether javascript is disabled using prototype library. I dont want to <noscript> use tag but something that prototype offers. Thanks ...

Javascript help

Somewhere in this javascript, it is telling my webpage to put a space in between each menu item. Here is the javascript: //** Chrome Drop Down Menu- Author: Dynamic Drive (http://www.dynamicdrive.com) //** Updated: July 14th 06' to v2.0 //1) Ability to "left", "center", or "right" align the menu items easily, just by modifying th...

How to make a fixed div ?

I am trying to make box to be fixed in the lower right border of the page and doesn't move with the page scrolls down. But it's not working for me dunno why. Here is my code: <html> <head> <style type="text/css"> .tooltip { width: 200px; position: fixed; top:auto; bottom:0px; right:0px; left:auto; } </style> </head> <body> ...

How To Display HTML Entities (decimal) In PHP?

How do i display the percent sign % in PHP using unicode &#037;? Here is the code. echo $percent . "&#037;"; I have the code inside a PHP function on a separate page it is then displayed on the HTML page. ...

Html Beautifier

Does anyone know of a HTML formatter? ...

Should I put paragraph tags around images?

Hey guys, I have a web page where I have text with images. I write some text (in a paragraph) then put an image, then another paragraph. Should I put p tags around the image too, or should I just leave it in between with just the img tag? The reason I ask this is because up until now I was just plopping images in between paragraphs, ...

Fixed positioning in internet explorer ?

I just wrote a sample page with a corner banner and tool tip. Everything is working just fine with firefox. But in IE things are not working correctly. I surfed the internet and found that IE doesn't support position: fixed. So does anyone know how to work around this problem ? Here is my source code <!DOCTYPE HTML PUBLIC "-//W3C//DTD H...

Can you style XHTML elements in another namespace using id and class name css selectors?

I'm developing an application that uses ubiquity-xforms. Previously I had been serving the pages up as text/html with the XHTML 1.0 doctype. If I switched the mime-type to application/xhtml+xml, I would see a pretty big performance improvement, because the javascript could use the get____NS() functions, instead of what it's doing now (s...

how to hide action=http://www.example.com/products/scripts/tpd.php method=get

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="38%" id="AutoNumber1" background="bg.jpg" height="177"> <tr> <FORM onkeydown=highlight(event) onkeyup=highlight(event) onclick=highlight(event) name=f action=http://www.example.com/products/scripts/tpd.php method=GET> ( Ho...

PHP Regex: Get info between groups of HTML tags?

I have been programming a word-unscrambler. I need to parse the information between a group of tags and another, and put all matches into an array. The beginning tag is: <tr> <td></td><td><li> and the ending tag is: </li></td> </tr> I know some regular expressions, but I am unfamiliar with PHP. ...

When should I HTML-escape data and when should I URL-escape data?

When should I HTML-escape data in my code and when should I URL-escape? I am confused about which one when to use... For example, given a element which asks for an URL: <input type="text" value="DATA" name="URL"> Should I HTML-Escape DATA here or URL-escape it here? And what about an element: <a href="URL" title="URL">NAME</a> ...

Css styling table tds

There are lots of pages I need to work with , the good thing is they all have the same structure. And finally I want to achieve a visual effect like this. <tr><td style="width:15%;">label text</td> <td style="width:35%;"><input type='text' style="width:50%"; /></td> <td style="width:15%;">label text</td> <td style="width:35...

Can a json string contain HTML tags with it?

Consider this my json string, [{"Mat_id" : "2","Mat_Name" : "Steel", "Measurement" : "mm","Description" : "Steel"}] Can i add HTML Tags inside this json string like this, [{"Mat_id" : "2","Mat_Name" : "Steel", "Measurement" : "<bold>mm</bold>","Description" : "Steel"}] Whether this is a valid json string? When Eval('('+ thiss...

Should i convert every single possible charcter in my xhtml/html code? for both encoding iso-8859-1 vs utf?

Should i convert every single possible charcter in my xhtml/html code? for both encoding iso-8859-1 vs utf? If yes then is there any software to convert any needed character (which should be always in entity code) in my xhtml/html. like after complete xhtml coding in dreamweaver or in any editor i will put all code in converter and will...

Efficiency of using a function to output html tags in php

Trying to come up with a basic way to display code in a way that would be nicely maintainable, I thought of doing something like this: echo htmlfunction('a',array('href'=>'http://google.com'),'google'); to generate: <a href="http://google.com"&gt;google&lt;/a&gt; this would use as a global scale function to output all html tags. th...

Web page width more than 100% need help finding the problem

Hi all, I've been working on a wordpress theme and just now noticed that the width of the page is more than 100%. I know that posting the code here would be helpful, but I don't know what portion of the code is the culprit. Whether it's a wierd HTML issue or CSS or otherwise. I've tried removing the javascript links in the header as ...

change dimensions of webpage

i have a webpage that looks like this: http://yoursdproperty.com/index2.php?option=com_jumi&amp;fileid=3&amp;Itemid=11 i want the page to be the same size as the dimensions of the little form on the page. is there something i can modify in this code of the page? <div id="mlcalc-w1"> <div id="mlcalc-w2"> <div id="mlcalc-w3"> <div id="...