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
    Member #
    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:

    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    <html xmlns="">
        <title>Cohesive Software Labs - HOME PAGE</title>
        <style type="text/css" media="screen, print">
        		@import "home_style.css";
    	<table border="1" align="center" cellspacing="0">
    			<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>
    			<td align="center" colspan="5">	<img src="main_image.jpg" border="0" alt="Main Image" title="Main Image" />
    			<td align="center" colspan="5">
    					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
    Any help would be great..... Thanks !!!


  3. #2
    Senior Member
    Join Date
    Jul 2005
    S.Wales, UK
    Member #
    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:
    My hosting:
    My Content Management product:

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

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 08:57 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: