html

HTML - Position an image in a new line

I have a series of parragraphs. Each one ends with a ilustratión which clarifies the subject being xplained in the parragraph. I want the ilustration to be on a new line and not display along with the text and I have found the following solutions, with it's own problems: Put the ilustration in a different <p> than the text related to t...

htaccess & htpasswd not hooking up correctly

Every time I try to go to Art School on Home Page and put it the correct username/password I get a server error. Yes this is homework, and yes it is my first time doing anything related to this type of setup so any help would be appreciated. All the various instructions that I found listed this as the correct way so I'm sort of stuck. ...

CSS rule isn't applying.

I have the following markup and CSS: <div id="contactarea"> <p class="heading">Anuncios Premium</p> <p class="tag">Asegure que su venta se complete!</p> </div> #contactarea { min-height:150px; border:1px solid cyan; } #contactarea p .heading { Color:Yellow; background-color:G...

How to edit link that show modal box in jQuery

I have a problem where I try to show a modal box, it's when I append some a href="" links to my that is on my index page. I have this in my jQuery script: $(document).ready(function(){ $('a').click(function () { // Dialog $("#feed"+$(this).attr('id')).dialog({ bgiframe: true, width: 400, modal: true ...

Display color picture as monochrome

Is there a way to display a color picture as greyscale using Html/Css? Ie. no server side processing. Edited: monochrome -> greyscale ...

Horizontal Scrollbar when reducing browser window

Good day, I've been doing some modifications to this website and the owner wants to have a horizontal scroll bar appearing when the browser window is reduced to a size that is smaller than the 'container' of the website. Right now it doesnt appear. I think that my main CSS is responsible for this. This CSS has overflow-x:hidden; and...

Unable to mark more than one coordinate in Google Maps

Below is the code listed to set markers in Google Maps. But only one marker is being set whereas four markers should be set. What is wrong with this code? <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } body { height: 100%; margin: 0p...

making a div extend all the way down to the bottom of the page

Hi There, My website has varaible content length, and this sometime means that the footer does not site at the bottom of the page, is there a way to make the footer fill whatever space is left? http://www.ibdnetwork.co.uk/members-content/forums ...

When to use <br> line breaks vs CSS positioning?

I've often wondered about the proper use of a <br> line break. Seems that often they are incorrectly used for positioning or clearing content where CSS should instead be used. W3schoools.org says to use <br> for blank lines, but not for creating or separating paragraphs. Looking over W3C HTML5 spec draft, it's a little clearer that...

Strip HTML tag but leave inner text using HTML Agility?

I am trying to strip out some HTML tags. I have a project where the person has saved some searches. Problem is the keywords have been highlighted. For example. <p>Here is some <span class='highlite'>awesome</span> example.</p> Html Agility turns this into 3 Nodes. A text node, span and text again. I would to create a single tag out of...

JQuery Scrollable Missing position onload and on api seek in webkit browsers

Hiya All, Strange issue i am having while working on this in the bottom right hand corner is a history section with a scrollable section that moved right or left. On load it picks a random number and moves to it. Problem is that on load (without moving) it loads in the wrong position, and on moving with the api it moves to the wrong of...

2 servers, same website on both: IE shows two slightly different version

I'm getting a weird issue involving IIS and IE, and I'll try to describe it clearly. I have a regular html-css-js/jquery website that I've developed locally. Now that it's ready, I'm trying to deploy it on a server. Once it's hosted on the server, I see two problems in IE only: The rendering is slightly different: there's a few pixel...

Expand the contents of a select element to increase the number of option elements.

Hi folks, I've got a select element with a large number of option elements and I'm looking for a way to toggle between having all options available and having a subset of the options available for selection (the subset being the most popular options). The options are ordered alphabetically and are grouped by their value's initial lette...

How do I remove these tags with JavaScript

I'm still learning regex (obviously) and i can't figure it out, and i want to do it the right way rather than doing it the long way. How can I: Find all <p> or </p> and replace with a \n except the first <p> and last </p> in which case replace with nothing, just remove, and for <br>, <br /> and <br/> replace with \n also. With Regex OR...

browser compatiable question?

i have this css box(div) that on mozilla firefox displays in the middle of the browser, but on the IE, it floats to the left, could you tell me what the issue is? #div-regForm,.registered{ border:3px solid #eeeeee; padding:15px; background:white; color:black; margin:30px auto 40px auto; width:600px; } html: <...

Sending email through simple html page

I just realized that I don't have a answer to this question, when I'm talking some friends we can't find the best simple solution to do this. Can I send a dynamically body, from a form with a prefixed subject? My question is about the most simple solution. []'s ...

registration form checking order in php?

i have a problem with this registration form, im checking the password and username, this is the process im doing it in? php: $username = mysql_real_escape_string($_POST['username']); $password = md5(mysql_real_escape_string($_POST['pass'])); //check if username is valid if (ereg("^[a-zA-Z0-9_\-]+$", $username)){ ...

How can I make this regular expression extract contents of certain HTML elements in my document?

I've spent a good few hours trying to get this regular expression to work and I'll I've got so far is one big headache! I'm using cURL to load a page into variable $o. Now somewhere in this page is the following: <tr valign="top"> <td>value1</td> <td>value2</td> <td align="right">value3</td> </tr> And this is repea...

How to keep style for HTML in Ruby/Rails?

I'm a beginner to Ruby/Rails, and just generated my first HTML programmatically - kind of exciting-- but when I viewed "page source" from the browser, my HTML had all these additional gaps and messed up the logical indentation: This code in a View: <% @states_array.each do |state| %> <ul><%= state %></ul> <% end %> and this code in...

CSS layout acting very weird and not positioning the elements where it should.

The elements aren't positioning themselves as I want them to. I want the picture to be 20px away from the left, why is the logos div so thin? :S Also why is the topuserbar div going under? There seems to be no reason. Here is the CSS and HTML. It's not rocket science, so that's extra frustrating because it shouldn't be rendering like t...