html

HTML attribute bgcolor is deprecated: What To Use Instead?

VStudio ASP.NET gives the following message: Attribute 'bgcolor' is considered outdated. A newer construct is recommended. What is the recommended construct? bgcolor is within a <td> element. Another related message is : Attribute 'bordercolor' is not a valid attribute of element 'table'. Does anyone know where I might find th...

How can I extract or change links in HTML with Perl?

I have this input text: <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body><table cellspacing="0" cellpadding="0" border="0" align="center" width="603"> <tbody><tr> <td><table cellspacing="0" cellpadding="0" border="0" width="603"> <tbody><tr> <td width="314"><img height="61" ...

Curved corner border for a div

Hi friends, I need to build a div with curved corner border, with out using any images in the corner. Is it possible? I dont want to insert curved images in the corner, Please help me regarding this. ...

Google Chrome Bug with CSS Padding style applying to empty cells

Hello there. I have a problem only in Google Chrome (Firefox, IE, Netscape, Safari and Opera are Okay) where a padding property which should be applied to text in a cell, is being applied to all empty cells aswell. It's easy to solve by adding more specific styles to my affected perimeter cells and using different styles, but that uses a...

What are the best books on HTML and CSS?

I've been using HTML and CSS for years, and I'm pretty proficient but I'm continually frustrated by browser compatibility issues. Are there any notable books that have helped you understand the details of HTML and CSS and write compatible markup? ...

Returning %40 to an @ symbol

dev%40bionic%2Dcomms%2Eco%2Euk I want to turn the above back in to readable text. Can anyone tell me how? Thanks EDIT Forgive my oversight, PHP is the language of choice! ...

Relative path to a stylesheet in Visual studio not working in preview

Hi, I'm assuming this is an easy question, but I'll be darned if I can find the answer. I have a website in Visual Studio 2008. The paths to the stylesheets (and images) are in the following format /css/stylesheetname.css At the root of the web project in Visual studio the folder exists as does the stylesheet. These paths work fine wh...

How to extract element id attribute values from HTML

I am trying to work out the overhead of the ASP.NET auto-naming of server controls. I have a page which contains 7,000 lines of HTML rendered from hundreds of nested ASP.NET controls, many of which have id / name attributes that are hundreds of characters in length. What I would ideally like is something that would extract every HTML a...

Are iframes considered 'bad practice'?

Somewhere along the line I picked up the notion that using iframes is 'bad practice'. Is this true? What are the pros/cons of using them? ...

How do I reduce the flicker in IE on postback?

IE causes a very unattractive flash or flicker when the page posts back. Without using an UpdatePanel, how can I reduce or remove it? Most solutions suggest using page transitions like so: <meta content="BlendTrans(Duration=0.1)" http-equiv="Page-Exit" /> We have been using this with success for a couple of years, but it's broken in ...

Hide something with CSS without display:none or JavaScript

How can I hide the div without using display:none or JavaScript? In my country, a lot of Blackberrys come with the CSS support disabled (the mobile companies here are not so good to developers). I have text that says <div class="BBwarn"> please activate your css support and a link </div> I want to hide that once the user activates CS...

HTML Table issue

I have a HTML table issue that I'd like to understand better. Let's assume that I have a 3 row HTML <table> <tr> <td style="text-align:right;">A1</td> <td>A2</td> </tr> <tr> <td style="text-align:right;">B1</td> <td>B2</td> </tr> <tr> <td colspan="2">A very loooooooong string here</td> </tr> </table> With a very long ...

How can I make a Table of Contents frame in XSL?

I have an XML file that I am creating an XSL stylesheet for. What I would like is to have two frames and do two passes on the data, the first would create a Table of Contents in the left frame, and the second would have the body of data in the right. I can do the two passes, the problem is putting them in separate frames. The frame HT...

How to wrap long lines without spaces in HTML?

If a user types in a long line without any spaces or white space, it will break formating by going wider than the current element. Something like: HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA............................................................................................................................................. I've tr...

Using Javascript to render data onload

This post probably will need some modification. I'll do my best to explain... Basically, as a tester, I have noticed that sometimes programers who use template-based web back ends push a lot of stuff into onload handlers that then do stuff like load menu items, change display values in forms, etc. For example, a page that displays your...

best practices to import text into html

What is the best practice for importing text into html from a multipage InDesign document, from designer to non-designer. Document designed on a mac going to CMS on PC - hand off the InDesign File or strip text into word file? Supplying all images and pdf as go-by? ...

How to make a WYSIWYG section on a web page?

I want to know the basic principle used for WYSIWYG pages on the web. I started coding it and made it using a text area, but very soon I realized that I cannot add or show images or any HTML in the text area. So I made it using DIV, but I did not understand how I could make it editable. So, in gist, I want to know how(in principle) to m...

Help with positioning logo/navigation links

Screenshot of the problem: http://i36.tinypic.com/dfxdmd.jpg The yellow block is the logo and the blue box is the nav links (I have blanked them out). I would like to align the links at the bottom so they are stuck to the top of the body content (white box). How would I do this? Here is the relevant CSS and HTML. #header { height:...

Access the id from iframe

Hi friends, Here i had build a html page with an iframe. I had an id within the iframe src page. Is it possible to access the id from my current page. Throu javascript. Please help me. ...

select the <select> tag options using value

Hi friends, I want to select an option in select tag through the value. - javascript var selectbox=document.getElementById("Lstrtemplate"); var TemplateName=selectbox.options[selectbox.selectedIndex].text; Now i am having the option text in TemplateName, using this i want to update an another select tag, which is having the same tex...