html

PHP: preg_replace() characters and make exceptions

I need an if() function to do this: preg_replace() letters (a, b, c, etc.) except for those wrapped in tags (<p>, <b>, <span>, etc.) and exclude the letters if they are part of a certain word. $string = "<p>replace everything inside tags <b>only</b> </p>exception"; $patterns = array(); $patterns[0] = '/e/'; $patterns[1] = '/b/'; ...

Content Moves in IE 8 When Hidden Divs are Made Visible

For my personal website, I built a very simple dropdown menu system entirely from DIVs and styles. When the user clicks on an item in the menu bar, the popup menu DIV is made visible, and when the user clicks anywhere else in the document the BODY element's onclick handler hides the selected menu and popup. In Firefox, everything works ...

Fancybox won't load inline content.

To make things easy, here's the site - http://schnell.dreamhosters.com/folio/pixelread.php View the source code all you like. The middle button of the top bar in your browser window that says "Palette" is supposed to open up a fancybox in the middle of the screen, and that box should load into it the data inside the element with id of ...

Easy way to apply calculated/inline styles to html?

Really annoying situation, and maybe there is an easier solution.. but I basically have a simple table I have styled in the general format: <style type="text/css"> table.master_table { ... global table styling } .master_table td { ... master table td styling } .master_table td.dv { ... td dv style } .. more st...

Java framework that requires fewest change to html/xhtml

We are trying to find a java framework that requires the fewest changes to html/xhtml when we get it from the designer. So far to me it seems Sitebricks is the least intrusive, but it is still in alpha it seems and has been that way for a long time. Wicket seems to come in a pretty close 2nd. JSF, Stripes, and Struts requires a lot, w...

drupal Webform HTML Email hooks

I'm trying to send a thank you email to the user submitting the form in HTML. I found out by using a hook in my template.php file like this works to set the header correctly: function mythemename_webform_mail_headers($form_values, $node, $sid) { $headers = array( 'Content-Type' => 'text/html; charset=UTF-8; format=flowed; delsp=y...

Embedded YouTube code does not validate

While validating my not be a big issue to some people, I personally want my page to validate whenever possible, as I feel it's a good habit to code properly whether the compiler/browser/person reading your code understands anyways. Anyways, I'm building a website for a client that is requesting a YouTube video of theirs be embedded in ...

How to limit line length for email XSLT

Hello, I'm trying to create a report in an email and email daemons chop lines if they're over ~ 2040 characters long. I'm using XSLT to build the email report and I need to break up these lines but I still need the link to work. <xsl:variable name="encoded_url"> <xsl:value-of select="saxon:string-to-base64Binary(concat(PROTOCOL,'://',...

I need to have an HTML <select multiple> with a disabled element

I need a way to have a multi-select box that has a disabled element. I want the box to look like: All -----or----- option 1 option 2 with the "----or----" not being able to be selected. So far my code is pretty simple: <select multiple size="4" > <option value="0">All</option> <option value="1">----or----</option> <option ...

How to convert HTML ==> RTF in Java?

The basic API of JAVA that uses RTFEditorKit and HTMLEditorKit, is not able of recognize tags like <br/> and <table>. So I have searched on internet a better way of converting HTML to RTF and i have found two solutions that seem to work. JODConverter and HTML-to-RTFconverter. The first one needs OppenOffice installed to work and the seco...

What's wrong with this url?

Why is Xul app saying XML Parsing Error: not well-formed for: <browser class="AppBar" type="content" src="test.html?img1=img1.jpg&img2=img2.jpg" flex="4"/> at the equals sign of &img2=img2.jpg"? Note that it works without the parameters. ...

Positioning in a three pane (header/body/footer) page

Below is an exceedingly simple HTML page. 1) I would like to add a menu across the top, which means that the position of that edit box may have to change(?) or must it? Is the text box positioned relative to its enclosing div (which will follw the menu's div)? 2) I want to add more form elements, and position them precisely, with coord...

How to make Silverlight labels behave like HTML labels?

For example when you create a radio button and a label for it in HTML and then click on that label, corresponding radio button is checked/unchecked. How to achieve similar behavior with Silverlight Label control? It seems like setting it's Target property doesn't help: http://mvcapp.codeplex.com ...

IE8 Clear float issue

My situation looked just like the problem discussed here: http://stackoverflow.com/questions/2511304/clear-float-issue That is: "I have a page with the standard navigation bar on the left and the content area taking up the rest of the horizontal area to its side. … This works fine except when the content area itself has fl...

text replacement & seo

I've been having a chat with a designer friend about text replacement and seo. I suspect I've got the wrong end of the stick, but I was under the impression that hiding content from users was bad practice. I'm aware that text is king and of separation of content & presentation. But to me this is a bit of a grey area. Is one considered be...

Left content cuts into right floated content

In the screen shot you see a list of items on the left (not floated) and a display box on the right (floated). How can I prevent the left item's li element from cutting into the display box. The li content follows the flow and breaks to a new line before running into the display box, but the li element, as in the container, does not. ...

Are XHTML style close tags valid in HTML?

Are XHTML style close tags valid in HTML? What I mean is, in XHTML we use <link href="style.css" type="text/css" rel="stylesheet" />. Is this valid in HTML? or should I be using <link href="style.css" type="text/css" rel="stylesheet"></link>? ...

remove or blur item from webpage

I have a site where if someone clicks on a particular item (image or swf) everything else on the page would either disappear or blur out. So the only thing left on the page that is visible is the thing that I just clicked. Is this possible to say everything change except this one div? ...

Covered from html to aspx page, but the menus disappeared, why?

The Code Part </head> <body> <script src="/c/Currency.js" type="text/javascript" ></script> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" > </asp:ScriptManager> <div id="Content"> <div class="nobg"> <div id="Top"> <div class="left"> <a hr...

Page works in IE and FF but not in Chrome or Safari

Can someone tell me what I could be doing wrong. The following page works fine in IE8 and FireFox but elements of the CSS don't seem to be being respected in Chrome and Safari. Thanks. page at: http://www.diabetesgoaltracker.com/home.html ...