Jump to content

Search the Community

Showing results for tags 'image'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








  1. I'm trying to align an image in my HTML document to the center of the page. In looking through the references on the W3 page I see that the align attribute is deprecated. There's a note that the CSS float property can be used (I am using an external style sheet) but it looks like it would only set things to the right or left, but not the center. Can someone point me in the direction of where I can look to solve this? Thanks
  2. i have a simple table data cell <td> and i have 2 same-sized images i need to put in there, the first image is the <td> background image (which is a transparent png that has a grunge border) and the second image is just a regular JPG. Whenever i just add the <td background="images/bg.png> background PNG image and add the JPG image inside of the <td></td>, you cannot see the background PNG. I need to make the background PNG float over the top of the JPG image. I have tried playing around with z-index and css styles, etc but i cannot seem to make it work. Any help would be appreciated. I have attached 3 images, the brush-bg.png background image, the JPG image, and lastly a JPG of what i want it to look likeRegards,James
  3. Mudsaf

    Problem with PHP

    Im selecting data from my database, but i want the image to be smaller in one place and higer in other place. So i got like mainpage what selects 1 from latest news & mainpage doesn't have that much space at "Width" as the image or video would require, but is it possible to make the "img/video" smaller before i get it from database. Example i want the code at mainpage to have like 200 width150 height News page should show the video as it has been posted to MySQL. Example here 600 width (The amount set when inserting the post)400 heigh (The amount set when inserting the post) This might be bit confusing but i can try explain again if some1 doesn't get my point.
  4. Hello, I've got a problem with placing an image inside a div on my website. Every time I add the image into the code it drags text from my footer up with it, I've tried a couple different ways of positioning it, in the styl;es.css etc but to no avail. I'll post the code exmple below: <div id="content"><a href="#"><img src="images/template.png" alt="our img" style="border: 1px solid #000101; </a> <!--CONTENT ENDS--> </div> And below that there's a div 'footer' of which has some text about copyright, it gets dragged up into the content area. In some cases it was dragging my navigation down too. I couldn't find any information about this so decided to post, hope you can help, thanks.
  5. I've seen this done several ways, but I'm looking for a simple solution. The main content area is white, with rounded corners at the top and a shadow around the top and both sides.(See image below) I've saved out the image in 2 pieces, one contains the top 72px or so with the rounded corners. The other is a slim piece, the same width as the top piece, including the shadow. I've created a div and gave it an id="contentcontainer", where all of the content for the pages will rest. Inside of this div is where I need these images to show up. The top image with the rounded corners needs to always be at the top and then the slim piece needs to repeat the length of the content as well as being fluid to accommodate differing amounts of content from page to page. Make sense? Any simple solutions out there? THANKS!
  6. This is my little site. So the problem is this: Why is the background picture (the one in middle with its frame, you will notice if you check through IE8 and firefox) not visible in IE8 but its all ok in Firefow browser? The link: http://chrisport.zxq.net/ The css code is included in the hmtl file as one can see.
  7. Hellos! I'm having a problem with a border: What I want to do, is to create a line between my site title and my header image. It would be a bottom border for the title. I want to use an image instead of the normal lines, that you normally use. The image is a sort of a chain which I want to span through whole page. What I've tried out so far is:border-bottom: url("/mywebsite/wp-content/uploads/2012/02/chain.png") no-repeat scroll 0 0 transparent
  8. What I want is a image as a background-and then place divs on that same background I use wrapper ^^
  9. westman

    image hover

    what is the scriped called where you can hover over a small image and you can see the full size?i need to know what it is called so i can google the scriped or if you have and example that would be great
  10. Hello!!! I am working on a chat developed with Ajax.I am trying to add emoticons to a chat on my site.I am planning to transfom them into text before sending them to the database. This is okay and i know how to do it.The problem is when I want to display those emoticons (along with text) on a div, after querying the data base.I don't know how to transform the text into images.I guess I have to use the Replace function or a similar one, but i don't know how to do it with images. this is what I have, the function which send the data to another page and get the response.I am using appendChild because I want the new texts to be placed after the previous ones. ....//the image/s I want to display:var imagen=new Imagen();imagen.src="http://www.websmileys.com/sm/sad/239.gif";....xmlhttp.onreadystatechange=function() {if(xmlhttp.readyState==4 && xmlhttp.status==200) {/* get here the response after having visited the page chatter.php*/ newdiv.innerHTML =xmlhttp.responseText; } }//I create a new element to put the new data:var add=document.createElement("div");var newdiv = add;//the element I already have on HTML:var container = document.getElementById("iddiv");container.appendChild(newdiv);xmlhttp.open("GET","chatter.php",true);xmlhttp.send();.......} Let's suppose I have some text like: uwyeruw--qweoo00, that I want to transform into the image above.How can i do that and send it along the rest of the text, into the newdiv variable? Thank you very much in advance, for any hint and for reading my post. Regards
  11. I have been using Positioning and Float to set up a banner. I want to have a fixed height banner (starting at the top of the page) and for this to have: an image located on the left; a background (generated from an img); and a single line of text aligned to the right of it and at the bottom. The html has a div with an id. This div contains the img and that has a class which floats it to the left. This div also contains the text, which is aligned to the right. The external CSS style sheet details the id, which repeats a background img to fill the browser window [repeat-x (doesn't seem to matter if I specify left/right/center)], and the class which floats the image [img.floatLeft], Main Problem: It works, but I can't figure out how to get the line of text, which is happily sitting on the right, to be at the bottom of the div. Isn't align deprecated? I'm confused. Secondary Issue; I read about the CSS background-position Property. I would like to fix the banner at the top of the page independent of scrolling, But I can't make it work with the repeated background image. I also noticed that the size of the image used for the repeat is changed when the div is fixed. I'm viewing it in FF 9.0.1. Thanks in advance.for any help / suggestions
  12. I've been playing around with site making and through tutorials and such nothing "exactly" tells how to position anywhere you want, at least nothing I've seen. My site is here http://www.moonanbeings.com/I want it to be as you see now, but correctly. I'm using CSS to place that image center there and I don't think that's how it should be. It shouldn't be through CSS and it shouldn't be a background image. Having it like that is like my easy way out. So, how do I get that background image to be a regular image and center, center for every resolution?
  13. Hello, I would like to put a border around Images but only in one section (page_content) of the site and not the whole page. Here is what I have and can someone please help me. #page_content { float: left; width: 480px; margin-top: 10px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px;}Thank you for your timeKimberly
  14. This white space is hiding my image and I dont know why! there is ample space for the image to exist in the div. Here is the CSS: #guitar {position: relative;transform: rotate(30deg);-ms-transform: rotate(30deg); /* IE 9 */-webkit-transform: rotate(30deg); /* Safari and Chrome */-o-transform: rotate(30deg); /* Opera */-moz-transform: rotate(30deg); /* Firefox */padding: 5px;border: 1px solid gray;background-color: #ffffff;width: 180px;height: 290px;} and here is the HTML <div id="guitar"><img src="Index_files/Images/Collage Photos/About Me/guitar1.png"/></div> i think im either missing something, or there is something mundane that i over looked. With this code, everything but the image shows up. thanks guys!
  15. How can I make a button image overlap without overlapping the selectable areas? My idea was to use the map and area tags to change the selectable area of each image but I don't know how to overlap the images.Honestly, I don't know if this is the best way to handle my problem and I would be more than happy to hear suggestions.
  16. http://attilahajzer.host-ed.net/ look in the footer and hover over the SOCIAL icons: facebook, flickr and twitter. the image changes to a color one. but flickers, how do i pre-load that hover image without it flickering for the first time?
  17. I have a problem trying to figure out how to make this work. This is for the project that Ive been making lately from my work. The company have this XML file that I need to get work with my already done website and Im planning to link this one to the already made website that Ive made. Here are the codes that Ive been trying to figure out for a week now and it still doesnt work in the browser. <?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="sample.xslt"?><rental modTime="2011-08-30-15:02:54" status="current"><images> <img id="a" modTime="2011-08-30-15:02:54" file="p2i4.jpg"/> <img id="b" modTime="2011-08-30-15:02:54" file="p2i5.jpg"/> <img id="c" modTime="2011-08-30-15:02:54" file="p2i6.jpg"/> <img id="d" modTime="2011-08-30-15:02:54" file="p2i7.jpg"/> <img id="e"/> <img id="f"/> <img id="g"/> <img id="h"/> <img id="i"/> <img id="j"/> <img id="k"/> <img id="l"/> <img id="m" modTime="2011-08-30-15:02:54" file="Photo/p2i3.jpg"/> <img id="n"/> <img id="o"/> <img id="p"/> <img id="q"/> <img id="r"/> <img id="s"/> <img id="t"/> <img id="u"/> <img id="v"/> <img id="w"/> <img id="x"/> <img id="y"/> <img id="z"/> </images></rental><name></name> <creationDate></creationDate> <author></author> <copyright></copyright> <authorEmail></authorEmail> <authorUrl></authorUrl> <version></version><description></description><files><filename>console.xml</filename> <filename>p2i3.jpg</filename> <filename>p2i4.jpg</filename> <filename>p2i5.jpg</filename> <filename>p2i6.jpg</filename> <filename>p2i7.jpg</filename> <filename>p3i8.jpg</filename> <filename>p4i10.jpg</filename> <filename>p4i9.jpg</filename> <filename>p5i11.jpg</filename> <filename>p5i12.jpg</filename> <filename>console.xml</filename> </files> and here is my sample XSLT code which im experimenting so I can start with the designing: <?xml version="1.0"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <html> <head> <title>Our Items</title> </head> <body style="background-color: #DACFE5; font-family:Arial, Helvetica, sans-serif"> <table border="1" align="center"> <tbody> <tr> <th>Pictures</th> </tr> <xsl:for-each select="//rental"> <tr> <td> <xsl:value-of select="rental/images/img"/> </td> </tr> </xsl:for-each> </tbody> </table>
  18. Hello everyone! The reason I came to these forums is because i have an issue with my code, could you guys look at it and tell me what i am doing wrong?I am trying to retrieve an image from my SQL database in the form of a binary blob, but it doesn't show up. This is the code of the PHP file i am using in my image src html tag: <?phprequire_once("connect.php"); $imgd = $_get['img'];$query="SELECT * FROM ads WHERE id=$imgd";$result=mysql_query($query) or die ("Error - ");$row = mysql_fetch_assoc($result);$image = $row['fotolocatie']; echo $image;;?> it doesn't show the error so it isn't the query witch fails. - Kevin
  • Create New...