html

Displaying paragraphs in HTML

Hi all, I'm writing a web application which needs to bring the stored paragraphs into the front web. The text come from excel work sheet and contains control characters like indent. I want to show the text in the exactly manner as it was in excel. How can I do that then? Thanks in advance. ...

How to hide the parent vertical scrollbar after an iframe is loaded?

Hi, I have attached the sample code which demonstrates the problem. I am checking this in Firefox 3.5.7. The problem is the parent HTML has a scrollbar, and it loads an iframe which is fullscreen (height: 100%, width: 100%), I want the parent scrollbar to be removed after the iframe is loaded. 1) Is this possible to do? 2) When we giv...

How can we specify src attribute of img tag in CSS?

Is it possible to set the src attribute value in CSS. At present what i am doing is:- <img src="pathTo/myImage.jpg"/> and i want it to be something like this <img class="myClass" /> also, i don't want to use the background or background-image: property. ...

Check valid html

Is there an easy way in C# to validate an html file (.htm) ? ...

Div in screen center when there are frames ?

How can I place a div into the SCREEN (not page) center, when the div is in an iframe, and the div's x position for being in the SCREEN center is too far left for still being on the iframe page (div.x < iFramePage.x) ? The iframe is in a table in the right row, and in the left row there is a navigation treeview. Now my div should ...

Does the classes on the ul and li menu Change dynamically on Joomla?

Using the joomla 1.5 menu (mainmenu module): Does the classes on the ul and li menu Change dynamically on Joomla? or if I make a template based on this classes will it work on all joomla instalations anyways I know that is a module that generated "good" classes but since most joomla users are newbies that can be a problem to ...

Fill window with iFrame and not show scrollbars?

How can I make my iframe fill the window and not display any scrollbars? This works for IE6, I would like to get it to work for all browsers if possible: <iframe name=iframe1 src="theSiteToShow.html" width="100%" height="100%" frameborder="0" marginheight="10" marginwidth="10"></iframe> <script type="text/javascript"> function resizeI...

How to draw picture in the text area of HTML?

I want to draw geometrical figure in the <textarea> of HTML pages, but I'm facing difficulty in how to do that. Could anyone please tell me? ...

Selenium: how to find div with specific content?

I need to find a <div> with certain content and click it from Selenium, as so: <tr> <td>clickAndWait</td> <td>//div[@class='gwt-Label' ***WITH CONTENT='Logout'***]</td> <td>5000</td> </tr> Is there some way to do this? I don't want to use an absolute xpath. ...

Small Php and MySql problem

I have an array of ID:s, and the ID:s are in this format: Bmw_330ci_89492822 So it's a string! Now, I have this code to find whatever is in that array, in MySQL: ($solr_id_arr is the array I mentioned above, it contains string ID:s) ex: $solr_id_arr[0] outputs Bmw_330ci_89492822 $solr_id_arr_imploded = implode(", ", $solr_id_arr);...

mouseover on text html

In my javascript file there is, var htm = '<div style="overflow:hidden;height:24px;width:150px;" onmouseover="tooltip(this)">' ; function tooltip(sp) { sp.title = sp.innerHTML; } So on mouse over a text the tooltip is displayed.But the tool tip does not stay longer. meaning the position is not fixed. Can the code be modified such...

fluid css layout for flash .swf file

I'm trying to make a fluid design, I'm using percentage for width and height trough out the site, but I have an embedded flash file which doesn't follow the percentage, I have to use em which is not good and it doesn't resize according to the viewport. so I was wondering if I'm doing sth wrong. this is the link to the website when 100...

Saving the manipulated DOM/HTML after editing it with Firebug

Assume that I've fired up Firefox with Firebug enabled on a random site (say slashdot.org). After loading the site I start editing the page using the Firebug > HTML panel. So far so good: my changes are immediately visible in Firefox. My questions: How do I save the edited DOM tree (represented as HTML)? How do I load a previously man...

Non selectable text in html table ?

Question: I abuse a table as list of buttons, using the onclick even on each cell. The problem is, the buttons are zoom buttons, and on clicking repeatedly too fast (doubleclick) you select the button (=table cell) text (even if you don't want to) and that looks odd. Can I switch that off ? Can I make text in a table non-selectable ? ...

HTML valid DIV attributes?

What are all the valid DIV attributes? Based on this link, it appears only class, id, title. Is that correct? Meaning, the for attribute and others is not valid for DIV? ...

Css attribute selector for input type="button" not working on IE7

Hi all, I am working on a big form and it contains a lot of buttons all over the form, therefore I am trying to get working input[type="button"] in my main css file so it would catch all buttons with out having to add a class to every single one, for some reason this is not working on IE7, after checking on the web it says that IE7 shoul...

excel like application in javascript

Hi All, I want to create an HTML/Javascript application with can behave like an excel sheet. I'm not talking about opening an excel sheet in HTML form but instead creating HTML/javascript code that will behave like an excel sheet where the grids and all will be html code etc. I hope you got my question. Any ideas as how I can approach ...

XHTML, how not to display the TITLE attribute as a tooltip

To make my web site XHTML compliant, I have added a title attribute to all of my IMG tags. However, when you mouseover an image, the text from my title attribute displays as a small popup. I don't want that text to be viewable. Question: How do I prevent the browser from displaying the title attribute text as a popup while still keepin...

How to get design mockup as a overlay for quicker development without using Firefox's pixel perfect plugin?

This is FF plugin http://www.pixelperfectplugin.com/ Pixel Perfect is a Firefox/Firebug extension that allows web developers and designers to easily overlay a web composition over top of the developed HTML. Read more: http://pixelperfectplugin.com/how-to-use/walkthrough/#ixzz0eOfezx1N How to get mockup image behind all div like this ...

Trying to anchor a link in center of in-page scroller content

I am trying to link from www.membersolutions.com to a press release here. All pages besides the homepage for the most part have that in-page scrollable content. Is there anyway I can link to a press release halfway down the page, I'm pretty sure you can't do it with straight HTML/CSS?? ...