html

How to subString a block of user generated HTML while preserving formatting?

I'd like to create the typical preview paragraph with a [read more] link. Problem is, the content that I'd like to SubString() contains text and html, written by a user with a WYSIWYG editor. Of course, I check to make sure the string is not null or empty, then SubString() it, problem is that I could end up breaking the html tags, throw...

best html css color tool

does anyone have a good link to a html color chart or tool where i can click on exactly the color i want and it shows me the html color for it. ...

CSS float doesn't keep outer block element sized properly.

I have the following HTML code: <ul class="blogEntry"> <li class="title section"> <span><asp:Literal ID="litTitle" runat="server" /></span> <span class="date"><asp:Literal ID="litDate" runat="server" Text="10/1/1000" /></span> </li> <li class="body section"><asp:Literal ID="litBody" runat="server" /></li> ...

solution for extra space in div element

In my application I am using a div element. There is some extra space found below and above the div element. How can I remove that? Thanks ...

Can Search Engines Read CSS?

I used tag to indicate the importance of a sentence. However, it disrupted the consistency of the page style. So I change it back with CSS. The result is that to visitors it is the same but to search engines(SEs), obviously, different. And this is what SEs are annoying about. So my question is can SEs read CSS, and further judge the w...

Passing hidden input fields in HTML Select option

Hello, does anyone know if it's possible to pass HTML vlaues in with a form page? So for example if the user selected foo from a list of say 10 options, I would want to pass a hidden value in and retrieve that as a request parameter, e.g. so I could then retrieve the values "foo" and "bar" from the request. Thanks Andrew ...

How do I make side-by-side images equal height (CSS/HTML)?

Two images, one is 300x400 pixels (height x width), the other is 500x600. How can I make them appear side-by-side, scaled so they are the same height on screen, filling the whole width of the page (or container/div), without changing the aspect ratio of either image? I'd like an HTML/CSS way to do this -- something that works for more ...

Yahoo Library Menu Button problem?

I have added the YUI Menu Button component in my page with given values I want to display. These are targeted to both IE7 and Mozilla. When I reload the page in IE, all menu links are showing up with white background, while in Mozilla it works fine. ...

How to stop jQuery from matching multiple elements

I am trying to create a rollover effect with jQUery. I have similar things, however because I am trying to do a mouseover with a an object that has a link in it I am having problems. I have a level-2 nav bar. The placeholder's are table cells (bad I know - but it's already done this way). I want to change the background from white (#FFF...

Custom Dropdown and Combo Box problem?

Hi Guys, I have a form.In that iam having my customized data dropdown.In one case combo box is below the custom data dropdown.when i click the dropdown th div iam caling has to come top of the combo box.It is not coming on the top the stack.the combo box and div are overlapping. Any Suggestions to solve these problem? Thanks Avinash ...

c++ .net HTML parser

Is there a library to parse a HTML response in in C++ .net? ...

Do you think a fluid website should have limits for its width?

Do you think a fluid website should have limits for its width (such as min-width and max-width, and hacks for IE)? Well, that's because screen resolutions may be too high which is not that good for reading text contents. What'd you say? ...

Jquery: Adding a class to even an odd List-Elements

I have the following jquery-code: <script type="text/javascript"> $(document).ready(function() { $ ('ul.image-list li:even').addClass ('even'); $ ('ul.image-list li:odd').addClass ('odd'); }); </script> and the following html: <ul class="image-list"> <li>first element</li> <li>second element</li> ... <li>last ...

PHP automatic list creation from a textfile to (X)HTML

Hi all people! I'm creating a CMS as you might already know, and now I have a lil' problem. Lets say: I have a textfile containing this: [b]Some bold text[/b] [i]Italic[/i] - List item 1 - List item 2 - List item 3 # List item 1 # List item 2 # List item 3 And I want to convert it to: <b>Some bold text</b> <i>Italic</i> <ul> <l...

How do you make a SWF resize inside a HTML page?

Hey, again. The stageHeight and stageWidth are read-write properties of the Stage class. Is there any way to embed the swf so that when you set them to a different value, this is reflected in the HTML page? Possibly without calling a JS function via ExternalInterface to modify the embed's parameters? The main idea is that I don't know...

removing and appending a node

I want to remove below span elements from the div (<div id='foo'>) and append newly created nodes instead each of them. I am using a loop to traverse all the children of the div, and for each node found I am removing it with removeChild and append an newly created node. I am getting o/p as <div id='foo'> <SPAN>new text</SPAN> </di...

Problem with CSS - removing border style changes page layout

I have a problem with a following sample html/css code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Sample</title> <style type="text/css"> * { padding: 0; margin: 0; border: none; outline...

leaking margin: unexpected offset due to nested DIVs

I have some unexplained weirdness with a nested DIV's margin "leaking" out of the parent container . The following test case* probably explains it best: http://jsbin.com/ibaze The outer wrapper (red) doesn't start at the very top - unless there's a text node or overflow: auto; on that element. (Tested on Firefox and Safari.) Whi...

What is the length limit of the HTML META tags?

And how do the constraints differ in practice on various browsers? ...

Strange website navigation mechanism

I am performing UAT on someone else's web-based application. the system is quite large with tens of forms, and hundreds of seperate input fields. Overall it seems well built and usable. I have noticed one thing that seems very strange to me. Every link I click on actually performs a POST request (containing details of the page I want) t...