getting text to float

Reply

Join Date: Mar 2006
Posts: 24
Reputation: Anax is an unknown quantity at this point 
Solved Threads: 0
Anax's Avatar
Anax Anax is offline Offline
Newbie Poster

getting text to float

 
0
  #1
Mar 30th, 2006
Hia groovers,

I've just got a site up with a couple of glitches I've been puzzling over. Foremost a difficulty with trying to keep the pages as clean and fluid as possible (it's kiddy friendly). To this end I wanted to have the central text as an 'auto' scroll which will only get scroll bars when the bottom navigation console gets in the way. But all my attempts to play with floats haven't worked. It seems the web is designed for text to be able to flow on down.

Another glitch is a floating element in Firefox coming down the screen.

I'd so love your input. And any other comments most welcome... :cheesy:

http://www.aberdeen-education.org.uk...DriveHomeC.htm

shows off both problems

cheers

anax
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,041
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: getting text to float

 
0
  #2
Mar 30th, 2006
Originally Posted by Anax
I'd so love your input. And any other comments most welcome... :cheesy:
This isn't the appropriate place to ask for site feedback. Please post in the Website Reviews forum. Thanks! http://www.daniweb.com/techtalkforums/forum55.html

Also, I'm confused what you're asking because I'm using IE, and the body text only gets a vertical scrollbar when I squish the window small enough that the bottom navigation starts to overlap it. Isn't that what you want it to do?

What I do here at DaniWeb is I encace all posts in [html]<div style="overflow-x:auto; width:650px">[/html] This way if someone posts a huge picture or a long line of code, it doesn't stretch out the whole page too wide and screw up the layout. Instead, it just puts a horizontal scrollbar beneath the problem post. I'm not sure if that's what you're asking. Basically, the overflow: attribute should currently work with all the latest browsers. However, I believe that overflow-x and overflow-y are currently IE-only but Firefox will support them in an upcoming version... I THINK. Please don't quote me on it.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,041
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: getting text to float

 
0
  #3
Mar 30th, 2006
Oh! On second thought, I just realized what you wanted. Suppose you use the float attribute, but it overlaps an element beneath it. What you want to do is encase the element beneath it with [html]<div style="clear:left|right|both">[/html]

Here's an example. Suppose you have [html]<div style="float:left">Blah Blah</div>
<div>More Text</div>[/html] But you don't want More Text to show up until after the Blah paragraph has finished. What you want to do is encase More Text in [html]<div style="clear:left">[/html] This pushes the <div> down so that it doesn't start until all floats coming from its left have finished. You would use clear:both to protect yourself from floats coming from both sides. Experiment. Try it. See if it does what you want it to. If I am reading you correctly, you want to wrap your bottom navigation into a clear:both, but I'm still a little confused what you're asking.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: getting text to float

 
0
  #4
Mar 30th, 2006
Yep: Float is one of those attributes that basically works in conjunction wiht other elements set to float and/or clear.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 24
Reputation: Anax is an unknown quantity at this point 
Solved Threads: 0
Anax's Avatar
Anax Anax is offline Offline
Newbie Poster

Re: getting text to float

 
0
  #5
Mar 30th, 2006
Also, I'm confused what you're asking because I'm using IE, and the body text only gets a vertical scrollbar when I squish the window small enough that the bottom navigation starts to overlap it. Isn't that what you want it to do?
First off thanks so much for quick thoughtful reply and sorry I was so confusing. And I had tried finding review forum but missed it, sorry/thanks for link to it.

You got me right first go. The problem is many people with their small browser windows are finding the text is lost under console before scroll bars appear. I played around with % height and settled on 45%.

I learnt from your second reply and have experimented with your suggestions re clears, and can see why I was confusing with my talk of floats. I was thinking I could float my graphics that need to remain stuck to bottom of window and get my central text to stop and get a scroll bar when it was hit.

To put it another way I want my central text block to stop at the bottom minus 180px.

cheers again

anax

I'm really stuck
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC