html

What are the implications of using "!important" in CSS?

Hi, I've been working on a premade packaged shopping cart website for a few months, and a lot of times when I've been trying to edit something, I have to use something like for example div.myDiv { width: 400px !important; } To make it display as expected. Is this bad practice? Or is the !important command perfectly legal? Can this ca...

CSS Debugging Tools for IE

Hello All... Recently have implemented lot of pages with different css classes for my web application. Now the application looks perfect in Mozilla/Chrome/Safari. But when I am running my app in IE 7 or 8, all the pages are becomes massed-up everywhere, with issues of margin, color, overflowing etc of css. So, I have try out some of t...

Changing class name

Hello i am working on a menu in wordpress and made it dynamicly like this: <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?> but when i look at my source i get the following: <ul> <li class="page_item page-item-5"><a href="http://localhost/private/Kife/?page_id=5" title="Start">Start</a></li> <li class="page_item pag...

Crossing the bounds of an overflow:hidden wrapper

Hi guys, bit of a pickle here: Got a large jquery.cycle carousel, the slides of which are div elements with loads of stuff inside of them. Rough markup: <div id="carousel"> <div class="slide">slide content</div> <div class="slide">slide content</div> <div class="slide">slide content</div> </div> The problem is that the "...

Calculating start and end selection indices in HTML through Javascript.

Hi All, How can I get the start and end selection indices in browsers other than IE in contentEditable 'div'. For Ex., IE has the following method. var oSelection; var oTxtRange; var units = -100000; var iStartIndex = -1, iEndIndex = -1; if(document.selection) // IE.. { oSelection = document.selection; oTxtRange = oSelection....

tab and enter hit different submit button in html form (all browsers)

Hi I have an issue that appears in all browsers. I am working with ASP.NET MVC. My controller renders an html form with various submit buttons (the reason for this is explained in the Addendum below). Whilst tabbing sends the focus to the right submit button under the right circumstances, hitting enter seems to submit the form usin...

How to delete slashes using PHP and HTML

Hi all, in the following code how to delete \ slashes using PHP and HTML <input alt#\"\" src=\"/ckfinder/userfiles/files/DSC_0017.JPG\" style=\"width: 400px; height: 266px\" type=\"image\" /></p> is this possible and if yes how? Thanks in advance for your valuable support ...

How can I do paging and sorting in a Perl CGI program?

Here is the table in which I am retrieving the data from an SQLite database. Its having lots of records, so near that ADD button I need something like |< < > >| which would do the paging function whenever I click. Also, besides the table each header (e.g. UserName UserId) I need a sorting button. Something like a ^ button. Please do h...

Why does Perl complain about a syntax error during compilation of my program with this HTML string?

I am facing a problem in my code. Whenever I try to insert a text field then it's giving an error. What's wrong in the syntax here? print '<table>'; print "<tr style='background-color:#CDC9C9;'> <td><A HREF=\"http://localhost/cgi-bin/AddUser.cgi\"&gt;ADD&lt;/A&gt;&lt;/td&gt; <td></td> <td><b>UserId</b></td> <td><input type="text" ...

Pure CSS drop down menu issue in IE 6 and 7

Hey Guys, I've seen a few hints on StackOverflow but cant really see a solution to my specific problem. I have a pure css menu with dropdowns, in IE8 and FF it works great, but compatibility mode for IE7 and IE6 it doesnt work. The thing is, it does drop down - but then when the mouse goes over the main website banner below, which has ...

Help with handling a button

Hi, I am trying to think of the best way to make a button/anchor for switching languages in my website. I need a button that when clicked, will changes a global variable lang, and refresh the page (so the new variable will be updated). Can you advice me what's the best solution, thanks By the way I am using python with Google AppEngin...

Jquery toggle not working

hi there. i am trying to get jquery to hide this div and for some reason it is not working what am i doing wrong http://stat-me.com/jq.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv=...

Use html or xhtml?

Are most of the websites using HTML or XHTML? Isn't XHTML "better" than HTML? I know the declarations are different. XHTML: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> ...

Send email with PHPMailer - embed image in body

Hi. I'm trying to send HTML mail, with PHPMailer, with images. The body is loaded from a html file, that contains all the info. When sending the mail, the image does not appear in the body, although I even send the image also as an attachment. HTML <img> tag points to the same place as the place. PHP: $mail->AddAttachment('img/2u_cs...

Can I view a flash image inside an iframe tag?

Can I view a flash image inside an iframe tag? ...

implementing button - HTML

i am using python, and appengine, and i am trying to fix a specific button. let's say this is the code : <FORM action="http://blabla" method="post"> <P> <LABEL for="firstname">First name: </LABEL> <INPUT type="text" id="firstname"><BR> <LABEL for="lastname">Last name: </LABEL> <INPUT type="text" ...

javascript: getElementById problem in IE

I am trying to attach a click event to a check box using JavaScript. Shown below is the HTML and JS. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <input type="hidden" nam...

Content type vs HTML encoding

Hello! I'm bulding a site and I've set its content type to use charset UTF-8. I'm also using HTML encoding for the special characters, ie: instead of having á I've got &aacute;. Now I wonder (still bulding the site) if it was really necesary to do both things. Looking for the answer I found this: http://www.w3.org/International/questi...

Submit image border in Safari and Chrome?

I have a submit image button: <input id="sbutton" type="image" value="&nbsp;" /> Styled like that: #sbutton { text-indent: -99999px; border: 0; background-image: url('submit.png'); width: 201px; height: 37px; } It works perfect in Opera in Firefox the button size is about 10x10px (wtf? :)) and in Safari...

Where could I buy a "social networking" html template or psd/ai file?

Hi, I'd like to start some little private social network and I'd need a web design, I looked throughout themeforest but did not found one. (There's only blogs/portfolio templates). Do you know any good place where I could buy a pre-made social network html template? Thanks! ...