I don't feel 50 Forums

Go Back   I don't feel 50 Forums > COMPUTERS > Web Design and Graphics Room.

Web Design and Graphics Room. Thread, centering an image

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 <img> <body> Please I have tried !!!!! What code do I use and where, ...

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 8th-January-2008, 02:15 PM
Guest
 
Posts: n/a
Default centering an image

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01

<img>
<body>

Please I have tried !!!!!

What code do I use and where, to get the image into the center of the page, using DW MX.
Reply With Quote
  #2  
Old 8th-January-2008, 06:32 PM
CPS's Avatar
CPS CPS is offline
 
Join Date: Jan 2003
Location: Suffolk/ Gender Male
Posts: 1,444
Default

This should do the job, placed between the Body Tags.

Code:
<body>
<div align="center">
[img]yourpic.jpg[/img]
</div>
</body>
__________________
Knowledge is not knowing all the answers,
but knowing where to find the answers.

www.smitheram.co.uk

Moderator of, Web Design/Graphics Room.
P4-XP pro-IE7-B/B-ZA-AVG
Reply With Quote
  #3  
Old 8th-January-2008, 09:25 PM
Guest
 
Posts: n/a
Default

Thanks Peter,

Did that but didn't include the DIV command, what does that do, or mean ?

Also does <H1> and </H1> mean Header. ?
Reply With Quote
  #4  
Old 8th-January-2008, 11:01 PM
CPS's Avatar
CPS CPS is offline
 
Join Date: Jan 2003
Location: Suffolk/ Gender Male
Posts: 1,444
Default

The "div" tag is used to separate sections, in your case a picture.
The "align" tag on its own is depreciated in html 4 and not allowed in xhtml (in effect html 5).
Its recommended that the div tag is used as I have shown.
The "h1" tag is indeed a heading tag ranges from h1 to h6 and appears as bold text.
Go to http://www.w3schools.com/tags/default.asp for full reference on tags.
Note most of them you wont need or use,
but like all things, the tags change over time.
__________________
Knowledge is not knowing all the answers,
but knowing where to find the answers.

www.smitheram.co.uk

Moderator of, Web Design/Graphics Room.
P4-XP pro-IE7-B/B-ZA-AVG
Reply With Quote
  #5  
Old 9th-January-2008, 11:18 AM
CPS's Avatar
CPS CPS is offline
 
Join Date: Jan 2003
Location: Suffolk/ Gender Male
Posts: 1,444
Default

Robert
In Dreamweaver click "file", then "new", in the popup window select "basic page",
in the bottom right corner tick " make document xhtml compliant" click"create".

This gives you the basic layout and dtd that complies with xhtml,
Dreamweaver will add code according to the xhtml standard.

All contents of the page you see go between the body tags and must be in lower case.

To insert a picture and center it, click insert, click image,
in the popup window browse for your picture and select it.

In the bottom tool bar on the right you will see B, I in bold type.
plus 4 little page icons select the second icon this will center the image on the page.

Hope this is of help to you.
__________________
Knowledge is not knowing all the answers,
but knowing where to find the answers.

www.smitheram.co.uk

Moderator of, Web Design/Graphics Room.
P4-XP pro-IE7-B/B-ZA-AVG
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.