473,385 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Box not displaying correctly

Hello everyone

Can someone help me please. I have a table
<div class="right_box">
<table class="right_box" cellspacing="0" cellpadding="0" border="0"
width="100%">
<tr>
<td valign="center"><img src="./images/welcome.jpg"></td>
<td valign="top">
<BR>Living in an age where environmental issues are becoming<br>
more prevalent, we are all becoming aware of our impact<br>
on the environment.Renewable energy & conservation is<br>
one of the keys to a sustainable future.millions of people <br>
like us hold the key Conserving water and reducing your energy <br>
consumption can result in amazing energy savings that will save<br>
you money and that are good for your future and the long term <br>
future of your children and theirs. Hayward renewable energy <br>
systems provide solutions for the home, we can supply and <br>
install systems to suit your individual homes needs.Both<br>
solar water heating and rainwater harvesting systems have been<br>
widely welcomed by planning and building control officers.
<br>
</td>
</tr>
</table>
</div>
Using the following stylesheet code

div.right_box {
clear:both;
width:67.5%;
height:100%;
left:232px;
top:157px;
position:absolute;
background-color: #72ABF8;
padding: 0.2em 0em 0.2em 0.9em;
border-right: 0.18em solid #4284B5;
border-bottom: 0.16em solid #4284B5;
color:white;
font-size : 0.8em;
}
but when it displays the box is to small the box and cuts some of the
text off and the image.

thanks

May 18 '07 #1
3 1614
Please ignore the class="right_box" in the table tag i have now taken
it out

On 18 May, 09:46, shawrie <neil.s...@sanderson.comwrote:
Hello everyone

Can someone help me please. I have a table
<div class="right_box">
<table class="right_box" cellspacing="0" cellpadding="0" border="0"
width="100%">
<tr>
<td valign="center"><img src="./images/welcome.jpg"></td>
<td valign="top">
<BR>Living in an age where environmental issues are becoming<br>
more prevalent, we are all becoming aware of our impact<br>
on the environment.Renewable energy & conservation is<br>
one of the keys to a sustainable future.millions of people <br>
like us hold the key Conserving water and reducing your energy <br>
consumption can result in amazing energy savings that will save<br>
you money and that are good for your future and the long term <br>
future of your children and theirs. Hayward renewable energy <br>
systems provide solutions for the home, we can supply and <br>
install systems to suit your individual homes needs.Both<br>
solar water heating and rainwater harvesting systems have been<br>
widely welcomed by planning and building control officers.
<br>
</td>
</tr>
</table>
</div>

Using the following stylesheet code

div.right_box {
clear:both;
width:67.5%;
height:100%;
left:232px;
top:157px;
position:absolute;
background-color: #72ABF8;
padding: 0.2em 0em 0.2em 0.9em;
border-right: 0.18em solid #4284B5;
border-bottom: 0.16em solid #4284B5;
color:white;
font-size : 0.8em;

}

but when it displays the box is to small the box and cuts some of the
text off and the image.

thanks

May 18 '07 #2
shawrie wrote:
Hello everyone

Can someone help me please. I have a table
Hello, shawrie. A URL would be preferred to incomplete but nonetheless
large chunks of code. Then we could see your doctype declaration, the
rest of your CSS, and the context of your code "snippet". We could also
easily try out your code in our browsers.
<div class="right_box">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td valign="center"><img src="./images/welcome.jpg"></td>
<td valign="top">
<BR>Living in an age where environmental issues are becoming<br>
more prevalent, we are all becoming aware of our impact<br>
on the environment.Renewable energy & conservation is<br...
Well, I can tell you right away that you'll have trouble with the
results you get here. You're putting in hard line-breaks at specific
places. The table is liable to break the lines at other places,
depending on things like the user's set font size, and then you've got
that div containing the table...
Using the following stylesheet code

div.right_box {
clear:both;
width:67.5%; [rest snipped...]
67.5% of what? What's the context block of your div? Provide a URL.
>
but when it displays the box is to small the box and cuts some of the
text off and the image.
I believe it.

--
John
May 18 '07 #3
On 18 May 2007 01:46:20 -0700, shawrie <ne*******@sanderson.comwrote:
>Can someone help me please.
Post a URL.

Lose the <br>s

Just let the text flow onto the <divor <tdand let the browser worry
about doing the line breaks and the container height. This works far
better - it self-adjusts to font size and container width.

Probably lose the <tabletoo, as it just looks like it's being used for
positioning.

Read about CSS float (might be the key to dumping your table)
http://brainjar.com/css/positioning/

Where in the UK are you? If you're in Aztec, walk up the office stairs
and say hello 8-)
May 19 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dave Posh | last post by:
I seem to be having a problem displaying time stored in mysql. The format stored in the database is 13:15:05. The database data type is time. I'm using asp vbscript and sql to retrieve the time...
2
by: Joe Price | last post by:
Hi chaps I've got an XML file, within that file i've embedded html code using the <!]> tag I'm displaying that xml file through a browser using an xsl style sheet. However it is displaying...
2
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
12
by: korund | last post by:
How to make javascript alert with non-english text displaying correctly on computers where english only is default system & language settings? For web page the solution is just use meta tags:...
0
by: Andy Lim | last post by:
Hi all, In my recent project, my client uses Chinese Star software to type the articles in chinese (using MS Word), and I need to display these articles within ASP.NET pages. And, for this very...
0
by: Andy Lim | last post by:
Hi all, In my recent project, my client uses Chinese Star software to type the articles in chinese (using MS Word), and I need to display these articles within ASP.NET pages. And, for this very...
0
by: anjachow | last post by:
The system generated email that are automatically sent displaying well in any web-based mail systems (yahoo, msn, etc...). The foreign characters (vowels with accents and the ñ) aren't displaying...
27
by: Phil | last post by:
I thought it would be nice to display some animated GIFs on some of my forms. I put a PictureBox control on a form, and loaded my GIF file in. It animates, but not properly. It seems very jerky and...
4
by: redpears007 | last post by:
Hi Again, Throwing this one out to you again as i am not getting anywhere and can find little to no information out there. I am currently displaying images (Jpegs) in access via the routine...
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.