MajorGeeks Support Forums IOBit Software

Go Back   MajorGeeks Support Forums > Majorgeeks.Com - Support Forums > Programming
Register FAQ Members List Calendar Casino Mark Forums Read

Programming Place to discuss programming including HTML, Java, C++, MySQL and others.


Reply
 
Thread Tools Display Modes
  #1  
Old 04-16-12, 11:21
Spock96's Avatar
Spock96 Spock96 is offline
Major Geek 'Spocky'
 
Join Date: Jan 2011
Location: Inside my computer.
Posts: 1,583
Thanks: 261
Thanked 113 Times in 106 Posts
Default Html Image help.

Hey Guys,
Ok, so I was given this assignment by my HTML instructor to make a web page on my favorite book.(Using raw code and Notepad2) I'm using a 3 book series, and I have this so far:
Quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>
<title>The lamb among the Stars.</title>
<h2 align="Center">The lamb among the Stars</h2>
<h3 align="Center">By: Chris Walley</h3>
</head>
<hr align="center" color="Blue" noshade size="4" width="50%">
<body>
<img src="Theshadowandnight" alt="Book Graphic" width="304" height="228" />
</body>
</html>
It all works except my image tag will not show the picture of the book.
Quote:
<img src="Theshadowandnight" alt="Book Graphic" width="304" height="228" />
I have the image saved in the same folder as the html document and everything. It shows my alt tag fine, but what I want it to have all 3 pictures of the books centered under my horizontal rule.
Like:
------------------ (my rule.)
1 2 3 (books)

Then continue my page.

Help you be greatly appreciated, will clarify more if asked.
Thanks,
Spock96
__________________
"Life can knock you down keep you there, then kick you in the teeth. But remember this my friends you can ALWAYS stand again."
Reply With Quote
Sponsored links
  #2  
Old 04-16-12, 13:05
foogoo's Avatar
foogoo foogoo is offline
Major Geek
 
Join Date: Jul 2004
Location: SW Ohio
Posts: 2,262
Thanks: 0
Thanked 215 Times in 198 Posts
Default Re: Html Image help.

if the html file and the picture are in the same directory it should work fine.
It did for me. Are you sure the file is an image? It is missing the extension.
Reply With Quote
  #3  
Old 04-16-12, 13:11
Spock96's Avatar
Spock96 Spock96 is offline
Major Geek 'Spocky'
 
Join Date: Jan 2011
Location: Inside my computer.
Posts: 1,583
Thanks: 261
Thanked 113 Times in 106 Posts
Default Re: Html Image help.

Quote:
Originally Posted by foogoo View Post
if the html file and the picture are in the same directory it should work fine.
It did for me. Are you sure the file is an image? It is missing the extension.
Yes, it is an image.
It says .JPEG in properties.
__________________
"Life can knock you down keep you there, then kick you in the teeth. But remember this my friends you can ALWAYS stand again."
Reply With Quote
  #4  
Old 04-16-12, 13:21
Spock96's Avatar
Spock96 Spock96 is offline
Major Geek 'Spocky'
 
Join Date: Jan 2011
Location: Inside my computer.
Posts: 1,583
Thanks: 261
Thanked 113 Times in 106 Posts
Default Re: Html Image help.

I got a friend that figured it out.
I didn't put my extension(.jpg) on it.
Oops.
__________________
"Life can knock you down keep you there, then kick you in the teeth. But remember this my friends you can ALWAYS stand again."
Reply With Quote
  #5  
Old 04-16-12, 16:52
foogoo's Avatar
foogoo foogoo is offline
Major Geek
 
Join Date: Jul 2004
Location: SW Ohio
Posts: 2,262
Thanks: 0
Thanked 215 Times in 198 Posts
Default Re: Html Image help.

Quote:
Originally Posted by foogoo View Post
Are you sure the file is an image? It is missing the extension.
Yeah a friend named Foogoo.
Reply With Quote
Sponsored links
  #6  
Old 04-17-12, 10:21
Spock96's Avatar
Spock96 Spock96 is offline
Major Geek 'Spocky'
 
Join Date: Jan 2011
Location: Inside my computer.
Posts: 1,583
Thanks: 261
Thanked 113 Times in 106 Posts
Default Re: Html Image help.

Ok, that Idea won't work without the use of manipulating a table, which is like Chapter 6 in our book ( we are just starting chapter 3)
Would it be the same table perspective if I tried to do something like:
Picture one(with text (Left Justified)

(Text) Picture two(Right Justified)

Picture three (with text(Left Justified)

Basically what I want to do is list the books and a little description of each.
__________________
"Life can knock you down keep you there, then kick you in the teeth. But remember this my friends you can ALWAYS stand again."
Reply With Quote
  #7  
Old 04-17-12, 10:31
Spock96's Avatar
Spock96 Spock96 is offline
Major Geek 'Spocky'
 
Join Date: Jan 2011
Location: Inside my computer.
Posts: 1,583
Thanks: 261
Thanked 113 Times in 106 Posts
Default Re: Html Image help.

EDIT---
Ok, that Idea won't work without the use of manipulating a table, which is like Chapter 6 in our book ( we are just starting chapter 3)
Would it be the same table perspective if I tried to do something like:
Picture one--(Text about it)...............

Picture two--(Text about it)..............

Picture three--(Text about it)............

Basically what I want to do is list the books and a little description of each.
__________________
"Life can knock you down keep you there, then kick you in the teeth. But remember this my friends you can ALWAYS stand again."
Reply With Quote
  #8  
Old 04-21-12, 14:45
PC-XT's Avatar
PC-XT PC-XT is offline
Master Sergeant
 
Join Date: Oct 2007
Location: on a farm
Posts: 637
Thanks: 23
Thanked 73 Times in 70 Posts
Post Re: Html Image help.

Quote:
Originally Posted by Spock96 View Post
EDIT---
Ok, that Idea won't work without the use of manipulating a table, which is like Chapter 6 in our book ( we are just starting chapter 3)
Would it be the same table perspective if I tried to do something like:
Picture one--(Text about it)...............

Picture two--(Text about it)..............

Picture three--(Text about it)............

Basically what I want to do is list the books and a little description of each.
For each image, I would use something like
PHP Code:
<br clear="all" style="clear:all" />
<
img src="..." align="left" style="float:left" />
Text about the image
Of course, the style attributes are all you need. (Or, you could use stylesheets.) Clear and align attributes are only needed if you want to support old browsers.
__________________
I.think(code);
I.eat(code.spaghetti);
Reply With Quote
  #9  
Old 04-21-12, 16:52
Spock96's Avatar
Spock96 Spock96 is offline
Major Geek 'Spocky'
 
Join Date: Jan 2011
Location: Inside my computer.
Posts: 1,583
Thanks: 261
Thanked 113 Times in 106 Posts
Default Re: Html Image help.

Quote:
Originally Posted by PC-XT View Post
For each image, I would use something like
PHP Code:
<br clear="all" style="clear:all" />
<
img src="..." align="left" style="float:left" />
Text about the image
Of course, the style attributes are all you need. (Or, you could use stylesheets.) Clear and align attributes are only needed if you want to support old browsers.
Thank you.
I ended up just finding a picture of all three books together and used it.
__________________
"Life can knock you down keep you there, then kick you in the teeth. But remember this my friends you can ALWAYS stand again."
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image in HTML Email: how is this done ? WarKirby Programming 8 05-15-11 16:42
Html to image software question, Trying to find decent html to jpg software edueche Software 2 08-26-09 14:05
HTML Image Block wisemas Programming 0 02-08-09 18:28
HTML Image Block wisemas Programming 0 02-08-09 18:16
Need help with HTML image tags Kaotic Programming 4 01-16-05 23:00


All times are GMT -5. The time now is 08:15.


MajorGeeks.Com Home Page
| Admin Tools | All In One | Anti-Spyware | Anti-Virus | Appearance | Backup | Benchmarking | BIOS | Browsers | Covert Ops |
Data Recovery | Diagnostics | Drive Cleaners | Drive Utilities | Drivers | Driver Tools Ergonomics | Firewalls | Games | Game Tweaks | Graphics | Input Devices | Internet Tools | Macintosh | Mail Utilities | Memory | Messaging | Monitoring | Microsoft | Multimedia | Networking | Office Tools | Process Management | Processor | Registry | Security | System Info | Toys | Video | Miscellaneous
|

-->
Powered by vBulletin® Version 3.8.4
Copyright © 2009 vBulletin Solutions, Inc. All rights reserved.
Ad Management by RedTyger