Data Recovery Forums - Help & Discussions Forum Index

Data Backup Software
Data Recovery Forums - Help & Discussions
Free online data recovery guide to help you find the information you need to recover your data. Discuss and get help about data recovery in this forum.
Data Recovery | RAID Recovery | Laptop Data Recovery

 FAQsFAQs   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Data Recovery Software
Deprecated Alignment Strategies

 
Post new topic   Reply to topic    Data Recovery Forums - Help & Discussions Forum Index -> Styling & Designing


 
Author Message
Isabella



Joined: 15 Jun 2006
Posts: 100

PostPosted: Fri Aug 11, 2006 11:46 pm    Post subject: Deprecated Alignment Strategies Reply with quote

The simplest way to center an image is to place it inside opening and closing CENTER tags:

Code:
<center><img src="imgName.gif" alt="image description" height="100" width="100"></center>


Unfortunately, the CENTER tag is also deprecated and becoming somewhat unreliable in the most recent browser versions.

Another simple solution is to enclose the image inside a page element that CAN be aligned to the center - such as a paragraph or a DIV tag:

Code:
<p align="center"><img src="imgName.gif" alt="image description" height="100" width="100"></p>

<div align="center"><img src="imgName.gif" alt="image description" height="100" width="100"></div>


Quote:
That solution works in all browsers, but you'll have to contend with the extra spaces that browsers automatically place above and below block-level tags. You'll have less control over page layout and display with this method. And remember that both rely on a deprecated HTML tag or attribute.

But a more pressing problem is that once an element or attribute is deprecated there are no firm rules governing how browsers should display it. Most browsers continue to recognize the tag or attribute, but you'll probably encounter display differences between browsers and browser versions.

Cascading Style Sheets (CSS) offer more alternatives, but also have their own set of browser display problems.













Via Larisa

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Data Recovery Forums - Help & Discussions Forum Index -> Styling & Designing All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Data Recovery London UK | Data Recovery Software

Powered by phpBB © 2001, 2005 phpBB Group