html

Regex to replace html links to plain-text URLs

I need to replace links in html: <a href="http://example.com"&gt;&lt;/a&gt; To just plain-text url address: http://example.com UPD. Some clarification here, i need this to strip down html tags from text but preserve link locations. It's purely for internal use, so there won't be any crazy edge-case code. Language is python in this ...

How can I inform the Zoom button of Mac OSX about best fit size for a web site

Mac os-x offers a little green orb of a button in lieu of the windows maximize that is a staple in the windows world. Apparently this button is suppose to resize the window to a "best fit" In the case of our web site, it's not doing that. Is there a setting of some kind that we can use to inform the mac browser of the appropriate size...

Convert HTML/CSS into plain HTML

Is it possible to convert HTML + CSS into HTML for a system that doesn't handle CSS? No, it doesn't handle inline CSS either :-( ...

ASP.net should render all it's scripts in separate files rather than in the page html.

I know it's not really a question. But this is bothering me like hell. ASP.net adds so many inline scripts to my pages. Postback scripts, Ajax scripts(many of them), Scroll position script, default button/field script, etc etc etc. Why on earth would they not just include all this mess in several files. All ajax into its file, all postb...

Jquery onselected for a option , how to?

<select> <option value="0" id="n">n</option> <option value="1" id="m">m</option> </select> In JQuery, how do I say: When id "n" is selected...do this . (not onclick) I want onSelected. ...

Jquery show/hide not working

Hi all, I have this jquery script which suppose to hide/show div element base on the hyperlink that is clicked. I don't know why but it's not working at all. The following is the except of my code. function hide_current_commoncontainer(commoncontainer){ $(commoncontainer).each(function(){ if(this.is(":visible")){this.hide();} }); ...

css properties for a jquery dialog

How to add the following properties to a jquery ui dialog? background-color:white; filter:alpha(opacity=80); -moz-opacity: 0.8; opacity: 0.8 and the dialog properties are $bottombar = $(".bar", "#view").dialog({ height: 475, width: '100%', modal: false, draggable: false,maximize: false , stack: t...

Text on the Button with space in between disappears in IE

I have some 6 buttons to be displayed in the toolbar and the buttons have to be displayed in such a fashion that there is a grouping i.e 3 buttons followed by a bit of space and then again another 3 buttons. I am using JSF as the UI framework. The issue lies when my last button in the 1st group has text with space in between has to be d...

Ckeditor question?

What kind of (x)HTML tags does ckeditor allow? And which tags don't they allow to be used? ...

problem with JavaScript sortable html table

Here is webtoolkit but ... var t = new SortableTable(document.getElementById('myTable'), 100); 2 parameters function SortableTable (tableEl) { and where is height ? Here is my try to make it work but it doesn't works (only commented code works but for ff and ie only) function ScrollableTable(tableEl, tableHeight, tableWidth) ...

How do you make an HTML button behave just like a hyperlink?

How do you make an HTML button behave just like a hyperlink where, if you click on it, it will open a browser window showing a page you want? I understand this much. I think I will use this but instead of a link to some javascript code inside the quotes for "onclick" I want to put something simple that will launch a new browser window...

HTML/CSS n00b Q: My wrapper class isn't "holding" anything

When I find the answer to this question I will feel like an idiot because I know I've solved it in the past, but it goes like this: I've got a pretty simple little bit of code. It goes like this: <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset...

Need help with a weird CSS problem

Take a lok at this site: http://www.naaf.no/fersking If you hover the mouse over the three article boxes, you will see that both text and image changes. I've placed the text in a DIV which floats above anothe div (image) with opacity set to 60%. But can anyone explain to me why the first article is approx 5px lower than the two other b...

CSS Showing small box in page

Hi , In my question form page, small boxes are display , i dont know what is that , how it is displaying , I i remve the form tag, that that stupid small box are vanished, Can u tell me , y small box are displaying., Thanks link text ...

Is there a way to have math formulas look nice on a web page (as in LateX, for instance)

I wonder if there is a framework or something else to display Math formula on a web page. Other than using images of those formulas... ...

styling a div in css

IF there is a div say <div class="ref"><contents goes here</div> How to specify in the css as body of the div .Meaning <style> .ref body { /* ref body contents goes here*/ } </style> Can anything like the above be done? If any one can explain the below also <style> .a > .bb { } </style> What does the above...

What is good rich text editor with autocomplete option for webpage ?

I tried using jQuery autocomplete plugin - it works great, but only on simple text fields. I'd like sth. simmilar that would work with tinymce or ckeditor or any rich text... help please! ...

H1-H6 font sizes in HTML

In HTML (and in typography in general, I suppose), there appears to be some defined sizes for H1-H6 -elements. Ie., if the baseline font size is 16px (or 100%), then h1 (w/c)ould be 2.25em (36px). And H2 (w/c)ould be 1.5em (24px). Et cetera. Where do these variables come from? The H1=36px, H2=24px, H3=21px, H4=18px, H5=16px, H6=14px, th...

Radio button validation (dynamic name)

I have a list of radio buttons. Each radio button has a dynamic name. Is there a way to check if they are all selected? Because most radio validation scripts uses a static name. ...

how to align all my li on one line ?

hello. my CSS ul{ overflow:hidden; } li{ display:inline-block; } my HTML <ul> <li>a</li> <li>b</li> <li>c</li> <li>d</li> <li>e</li> <li>f</li> <li>g</li> </ul> i want to align all my li items in one line, if i did that everything works fine except that when 3 or 4 li's fills the first line on my body they go the the second line, ...