Data Recovery Forums - Help & Discussions Forum Index

Data Backup Software, Program | Solution, Computer | System 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.
Professional Data Recovery | Data Recovery Houston | Data Recovery Chicago | Data Recovery New York | Data Recovery Boston | Data Recovery Los Angeles

 FAQsFAQs   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Windows Data Recovery Software | Tool | Program | Utilities | Applications, NTFS Deleted File Recovery, FAT Undelete
Browser Display Issues And ALIGN

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


 
Author Message
Isabella



Joined: 15 Jun 2006
Posts: 103

PostPosted: Fri Aug 11, 2006 11:43 pm    Post subject: Browser Display Issues And ALIGN Reply with quote

Of course, if you're moderately familiar with CSS, you may have already asked yourself this question:

"Why not just control the inline element problem by converting the problem image from an inline to a block-level tag?"

Yes, it seems simple. Just add this class:
Code:
<style type="text/css">
  .centeredImage
    {
    text-align:center;
    display:block;
    }
</style>



and apply it to the IMG you want to center:

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


That eliminates the extra code needed for the container tag.

That is (or seems to be) the easiest and most elegant solution. And it is - for Explorer browsers. Other browsers follow W3C standards more strictly than Explorer (even Explorer 6.x) and don't allow you to convert images from inline to block. Just to make it even more confusing though, some of those browsers do allow you to convert other inline elements to block-level!

Carefully check for display problems if you apply styles to any page element that also uses the ALIGN attribute. Some browsers may ignore the deprecated ALIGN attribute value. This is a particular problem in tables.

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 Service | Data Recovery London UK | Houston Data Recovery | Chicago Data Recovery | New York Data Recovery

Powered by phpBB © 2001, 2005 phpBB Group