html

is this url unvalid and not good practice?

i have a url in this format: http://www.example.com/manchester united note the space between manchester and united, is this bad practice, or is it perfectly fine, i just wanted to before i proceed, thanks ...

css tabs with jquery

Hi All, I have this html file with some css styles now I am trying to create vertical tabs but when the page loads all the content is being displayed then if I select any particular tab only content of that tab is display but I am just worried when the page. How come all the tab content is being displayed? below is the code. <!DOCTYPE ...

Get first few elements of a html fragment with xpath on ruby

For a blog like project, I want to get the first few paragraphs, headers, lists or whatever within a range of characters from a markdown generated html fragment to display as a summary. So if I have <h1>hello world</h1> <p>Lets say these are 100 chars</p> <ul> <li>some bla bla, 40 chars</li> </ul> <p>some other text</p> And assum...

Crystal Report showing HTML text, but the bullets don't show. Why?

I'm getting data out of a SQL-Server nvarchar(3000) field, which is formatted as html, displaying it in Crystal Reports 11. The data is being saved as bullets, and if I pull out the data and drop it in a text file with an html extension, it shows the bullets. But from Crystal, it does not. I get the new line, but no bullets. The fiel...

Image quality in "Web Page, Filtered"

Hi, This is an important issue and I would be grateful for a solution. I convert a document (RTF) with several embedded images to HTML with Word 2010. The original quality of all images is 200 dpi. When saving as "Web Page, Filtered", all images are reduced to 96 dpi, despite of what I set in the "Save As" dialog -> Tools -> Web Optio...

Where do I edit output code to mark-up an image url?

Hello, I have a wordpress site with these two image gallery plugins: http://wordpress.org/extend/plugins/nextgen-gallery/ http://wordpress.org/extend/plugins/nextgen-smooth-gallery/ I want to add some extra markup(for a resizer php) to the image urls, but can't find where in the plugin code to do it. What should I be looking for? Yo...

Fit element next to another one?

I'm trying to position a little down arrow beside a textbox. jsFiddle example How can I make the box fit snuggly against the input, such that their tops and bottoms align? Must be a way to grab the position info was JS/jQuery and then... what, should I absolute-position it? Edit: Got it pretty darn close to how I want. It's still a...

Popup close on button click and redirect to different page!!

Hello I have a popup that is shown after successfully saving in the database. It shows "Password is successfully saved" and also has a "Ok" button. I want the popup to be closed when Ok is clicked and should be redirected to login page. With my code here, it saves, shows the popup, when OK is clicked,it stays on the same page. Please he...

Trigger AJAX with jquery click event

I have two drop down menus, one of which I am trying to replace with radio buttons using jquery. The second box is updated via AJAX with new options any time the user makes a selection in the first drop down. I have successfully generated radio buttons that change the values for the first drop down but when the user updates the first dro...

How do I prevent line numbers from appearing in content copied from ordered lists

Hi, I'm using a syntax highlighter, Google Prettify to be more specific, and I'm trying to select the content of the code but without the numbers of the li items, and when I say select I mean select with the mouse to copy and paste the code. I wonder if that's possible. If I'm not clear, please tell me and I will try to explain it bett...

Low-level javascript framework that abstracts away html/css?

Honestly, now when we have so many javascript features on the frontend I really wish javascript in the browsers could replace html and css entirely. We could deal with objects (structure + design + functionality) instead of html elements and css that style these elements. But since that is never going to happen, I wonder if there is an...

Firefox: box-sizing and min-height

I can’t understand: is this really a bug or am I just missing out something? I have box-sizing: border-box set for all my div within an HTML document (with all the -moz and -webkit prefixes, of course). So it means the height of a div always includes its padding. It’s reasonable to expect the min-height property to act similarly. But ap...

in chrome or firefox,why has padding-bottom in this code?

i using doctype: http://www.w3.org/TR/html4/strict.dtd full code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <HTML> <BODY> <div style="border:1px solid red;background-color:blue;"><img src="http://www.google.com/intl/en_ALL/images/srpr/logo1w.png"&gt;&lt;/div&gt; </BODY> </HTML> yo...

how to show alternate image if source image is not found? (onerror working in IE but not in mozilla)

Hi I need to show an alternate image in cell of table if source image is not found. Currently below code is used to do so. cell.innerHTML="<img height=40 width=40 src='<%=request.getContextPath()%>/writeImage.htm' onError='ImgErrorVideo(this);'>" function ImgErrorVideo(source){ source.src = "video.png"; source.onerror...

Generating link preview and detect video/image using a URL!

I am getting the HTML content of the page using the URL. once i got the HTML i m striping all the images using Xpath. I m stuck at how to fetch the video content. If i try checking for embed code ,it gives me all the adds inside the page. Please suggest me a workaround. Thanks in advance. ...

How do I make a link unclickable?

Is there some CSS property or something that I can use with my anchor tag so as to make it unclickable or I HAVE to do stuff in code behind to get what I want? [edit] onclink=return false; is refreshing the page..I dont want that..want this anchor tag to appear as a plain text..actuaaly I have css applied on anchor tag..so cant change i...

Jquery - Best way to style a Input file tag

Hi, what is the best, clean and simplest way to style a <input type="file" tag? Thanks in advance! Peter ...

margin-bottom question,is this IE's BUG?

code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <HTML> <HEAD> <style> #boxTop{ margin-bottom:20px; border:1px solid green; } #box1{ float:left; border:1px solid blue; } #box2{ clear:both; border:1px solid red; } </style> </HEAD> <BODY> <div id="boxTop">test</div...

CSS 3D support on Mozilla,Chrome,Opera.

Hi ALL I am working on 3D Data rendering and I am not able to find out the equivalent of following in mozilla, opera, chrome Can anybody help me out from this problem. for e.g: -webkit-transform: rotateX(90deg) translateZ(200px) rotateY(90deg) rotateZ(90deg); Thanks, Amit ...

how to remove cache on client system when he press back button in firefox

In a page i show the dropdownlist. the value of this is set by server side code. i have a problem with it:- when user press on link he goes to 2page and he come back then value need to be change becuase on 2nd page user already edit them. so in chrome he was updated even user press back button but in firefox it is not update the dropd...