Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Sep 2005
    Posts
    10
    Member #
    11205
    Hi !

    Iam newbie starting out in web design and I am currently reading and working on HTML XHTML and CSS at qabeginners stage. I am trying to make sample websites to gain more practice and enclosed is the code for one of the pages of my website, I am currently using tables to align everything in the right place.

    The problem I ran into is that when I remove the "<br/>" (highlighted in bold in the code below) from the body of the text inside the third row of the table the table suddenly expands a little bit more, I don't understand why that happens ?
    It also runins the page to page transformation, can anyone please tell if there is something wrong with what i am doing.


    The code is:

    Code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Cohesive Software Labs - HOME PAGE</title>
        <style type="text/css" media="screen, print">
        	<!--
        		@import "home_style.css";
        	-->
        </style>
    </head>
    <body>
    	<table border="1" align="center" cellspacing="0">
    		<tr>
    			<td align="center" cellspacing="0"><a href="cohesivesoftwarelabs.html"><img src="soft_main_home.GIF" border="1"
    			alt="HOME Link" title="HOME" /></a></td>
    			<td align="center"><a href="products.html"><img src="soft_main_products.GIF" border="1"
    			alt="PRODUCTS Link" title="PRODUCTS" /></a></td>
    			<td align="center"><a href="technology.html"><img src="soft_main_technology.GIF" border="1"
    			alt="TECHNOLOGY Link" title="TECHNOLOGY" /></a></td>
    			<td align="center"><a href="support.html"><img src="soft_main_support.GIF" border="1"
    			alt="SUPPORT Link" title="SUPPORT" /></a></td>
    			<td align="center"><a href="contact.html"><img src="soft_main_contact.GIF" border="1"
    			alt="CONTACT Link" title="CONTACT" /></a></td>
    			<br/>
    		</tr>
    		<tr>
    			<td align="center" colspan="5">	<img src="main_image.jpg" border="0" alt="Main Image" title="Main Image" />
    			</td>
    		</tr>
    		<tr>
    
    			<td align="center" colspan="5">
    				<p>
    					Cohesive Software Labs has embarked on an adventure of providing cutting edge
    					software solutions through  latest technologies <br/>available. People at cohesive
    					beleive in best results achieved at only through the path of exhaustive performance
    					testing.
    				</p>
    			</td>
    		</tr>
    	</table>
    
    </body>
    </html>
    Any help would be great..... Thanks !!!

  2.  

  3. #2
    Senior Member
    Join Date
    Jul 2005
    Location
    S.Wales, UK
    Posts
    250
    Member #
    10742
    I haven't tried your actual example, but table cells expand and contract depending on the content in them. To make things worse IE and Firefox have slightly different rules on when it does this.

    You can try fixing the cell size to a certain number of pixels but that doesn't always work.

    The paragraph will be wrapping, so it's probably the word "available" keeping to the same line and making the cell wider, whereas with the line break it is forced to the next line.
    Paul Creedy
    Visit my community site at: www.rhonddacynontaff.com
    My hosting: www.rcthosting.com
    My Content Management product: www.dynamiccontenteditor.com

  4. #3
    Senior Member Rince's Avatar
    Join Date
    Nov 2004
    Posts
    183
    Member #
    8318
    Not directly an answer to your query. But there is a stray <br /> tag here.
    Code:
    alt="CONTACT Link" title="CONTACT" /></a></td>
    <br/>
    </tr>


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:31 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com