473,396 Members | 1,713 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,396 software developers and data experts.

Text running over bottom of DIV ...


I am kinda new to CSS and undertook a project to big for a noob.
Either way I am almost done and have learned a lot, even in the last
few days. I had an issue where I could not get a border to appear
around the layout, I was advised here that using float would do that.
I re-ordered the HTML a bit, abandoned the float and came up with the
following layout. I had my victory dance today and then realized I had
yet again failed.

I have two columns defined in the css as .menu and .content. They are
both wrapped in a div called page. I applied a background to page and
it has replaced the background color of .menu for now - this seems to
grow and shrink with .menu just fine. If the content of .content is
greater than in length than the content of .menu it runs over the
bottom of the div, kills the border in firefox and can cause the final
div on the page to appear in the incorrect position.

I believe this is because I am using one final float: right; to
position .content -- but I dont know how else to get it where it is
supposed to be. position: relative as far as I understand things
positions an element relative to its actual position on the page, as
this section moves depending on the length of the menu I dont see how I
could ever put an appropriate figure in ...

Check it out in IE to see how it should look, then Firefox to see bit I
am struggling with.

http://dubyadubyadubyadotcom.com/mob...related&kv=219

The stylesheet is here.

http://dubyadubyadubyadotcom.com/mob...stylesheet.css

Please help if you can - I have but a few days to get this delivered.

Jul 21 '05 #1
3 3605

Solution found -- unless somebody can explain how to do it without the
float, I'd rather understand alternatives rather than just applying
this.

http://www.positioniseverything.net/easyclearing.html

Jul 21 '05 #2
me
"ManChild" <st******@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...

I am kinda new to CSS and undertook a project to big for a noob.
Either way I am almost done and have learned a lot, even in the last
few days. I had an issue where I could not get a border to appear
around the layout, I was advised here that using float would do that.
I re-ordered the HTML a bit, abandoned the float and came up with the
following layout. I had my victory dance today and then realized I had
yet again failed.

I have two columns defined in the css as .menu and .content. They are
both wrapped in a div called page. I applied a background to page and
it has replaced the background color of .menu for now - this seems to
grow and shrink with .menu just fine. If the content of .content is
greater than in length than the content of .menu it runs over the
bottom of the div, kills the border in firefox and can cause the final
div on the page to appear in the incorrect position.

I believe this is because I am using one final float: right; to
position .content -- but I dont know how else to get it where it is
supposed to be. position: relative as far as I understand things
positions an element relative to its actual position on the page, as
this section moves depending on the length of the menu I dont see how I
could ever put an appropriate figure in ...

Check it out in IE to see how it should look, then Firefox to see bit I
am struggling with.

http://dubyadubyadubyadotcom.com/mob...related&kv=219
The stylesheet is here.

http://dubyadubyadubyadotcom.com/mob...stylesheet.css

Please help if you can - I have but a few days to get this delivered.


If I may I'd like to ask why you're mixing tables with divs (not that it's a
sin mind you)? I don't know if this applies to you but one reason I suspect
some people do this is because they don't know how to get a nice 1 pixel
colored border around their tables. No doubt I'll be flamed for suggesting
this in a CSS NG but here goes anyway. This is very old school but it still
works, at least in IE, no doubt it could stand some CSS too. See below for
an example. Ducking back in my hole now. ;-)
Good Luck,
me

<table width="0%" border="0" cellspacing="0" cellpadding="0"
bgcolor="#00D9D9" align="center">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="4"
align="center">
<tr>
<td bgcolor="#FFFFFF" align="center"> Big Business<br>
1000 Any Road <br>
Anywhere, New York 11111<br>
(111) 222-3333 <br>
</td>
<td bgcolor="#FFFFFF" valign="top" align="center"> Hours: <br>
10 a.m. - 4 p.m. <br>
7 Days a Week, <br>
365 Days a Year &nbsp; </td>
</tr>
<tr>
<td bgcolor="#FFFFFF" colspan="2" align="center"> E-mail ????? at:
<a href="mailto:??***@aol.com">??***@aol.com</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
Jul 21 '05 #3
This was an old HTML app that is slowly being converted over the pure
CSS - the only tables exist within pages where grid style listings of
images appear and to format mixed chunks of textual data and images.
The tables will eventually dissapear as CSS is more widely
adopted/implemented by the browsers and I quit having trouble replacing
them.

Jul 21 '05 #4

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

Similar topics

5
by: Analysis&Solutions | last post by:
Hey Folks: I'm probably dreaming here, but perhaps there's a way... I just gave a presentation. It's in XHTML and uses CSS for making things look nice. Right now there's a small navigation...
3
by: Michael Goldbach | last post by:
Hi, I'm currently encountering a problem with vertical alignment of text in a DIV that drives me mad. I'm having a DIV with a fixed height (say 50px) which contains some text from which I...
5
by: KiwiBrian | last post by:
I wish to place an image of a word of text in the middle of a sentence, but need to adjust the vertical position of the image so that it looks inline with the text. I have tried unsuccesfully to...
3
by: ChadDiesel | last post by:
I'm new to Access and need some advice. I am trying to setup a database to print labels and reports for our shipments. I have set up a table with fields such as I have taken a snapshot of what...
1
by: ChadDiesel | last post by:
I'm new to access and need some help. I have a form with a shipment destination at the top. I then have a subform that I enter boxes for that shipment. I have several shipments going at a...
2
by: george.leithead | last post by:
Hi all, I have a very strange problem! In following Web page (which is generated from a CMS System), the navigation to the left 'dissapears' when you roll the mouse over the links? It does not...
8
by: Edward | last post by:
I used to do this all the time in HTML-table layouting. How do I do this in CSS? -------------------------------------------------- <table width="400px"> <tr> <td bgcolor="beige">one line of...
9
panachepad
by: panachepad | last post by:
I arrived here from a websearch that found this thread from your archives: http://www.thescripts.com/forum/thread97805.html It helped me to understand that I am on the right track, but I still have...
13
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and call the web service from a remote machine, one...
16
by: Wayne | last post by:
I've read that one method of repairing a misbehaving database is to save all database objects as text and then rebuild them from the text files. I've used the following code posted by Lyle...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.