Floating div pushes p content down
Hello,
I have created a floating div that a use to place pictures in
so that the text will flow around it. This all works fine.
However when i place the text within a <p></p>
tag, it forces the text below the picture and not flow around it.
Why might this be? Thanks
Impossible to say without seeing your code....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Si Fi" <[email protected]> wrote in message
news:eqil2v$d80$[email protected]..
> Hello,
>
> I have created a floating div that a use to place
pictures in so that the
> text
> will flow around it. This all works fine.
>
> However when i place the text within a
<p></p> tag, it forces the text
> below
> the picture and not flow around it.
>
> Why might this be? Thanks
>
Similar Messages
-
My accordion panels stopped pushing content down suddenly
They were using the default behavior of pushing content down when open so the pop-out copy could be read, but suddenly stopped working and are now overlapping content below when opened. I don't want this. How can I get them to go back to the way they were?
What's "Overlap Items Below" set to?
-
Why is the length of a floated div ignored by the outer wrapper?
I'm having a hard time understanding whether floated elements are relatively or absolutely positioned.
When I do a "float:right" on a narrow column, the text outside that column seems very aware of its existence. It won't appear under it - it will instead wrap around it. It will make room for it.
However, the outer wrapping div ignores the floated div completely. It will only take into account (and accomodate for) whatever amount of text is NOT in that inner floating div.
Example :
<div class="wrapper">
<div style="float:right">
Float right contents.
</div>
This is the content that isn't floating right.
</div>
If the right-floated contents are longer than the content that isn't floated right, the outer wrapper ignores it. It will only accomodate the text that isn't being floated. If the floated text exceeds the non-floating text, the floating text will bleed outside the outer wrapper.
How do I make the outer wrapper accomodate the right-floated div as well?I'm having a hard time understanding whether floated elements are relatively or absolutely positioned
Neither. Floats are floats. The take content out of the normal flow. For this reason, you must clear floats after they are no longer needed. I typically use a br, p or hr tag with a clearing class like so:
CSS:
.clearFloat {clear:both; height 1px; visibility: hidden}
HTML:
<hr class="clearFloat" />
Floats and Margins Demo.
http://alt-web.com/DEMOS/3-CSS-boxes.shtml
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Floating Divs - What am I missing?
I'm trying to align two divs (a small one on the left and a
column on the right) to the top of a container div, then have a 3rd
div (the body content div) appear below the top left div, but
beside the top right div.
But the body content div is appearing below the top right div
instead of beside it -- I can't figure out why...
See what I mean at:
http://staging.digitaloilfield.com/whativegot.htm
This is what I want:
http://staging.digitaloilfield.com/whatiwant.htm
Can someone please advise?
LeifGoogle "faux columns" - it's the best way.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Leif S" <[email protected]> wrote in
message
news:eqdj89$69t$[email protected]..
> Okay... I've applied widths to floated elements and I'm
almost there.
>
> Does anyone know how I'd get the homerightcontainer to
be the same height
> as
> the homebodycontainer? (in other words, the
homebodycontainer sets the
> height
> of the homerightcontainer)
>
> Also, now there's a small gap (in IE6) just above the
navindicator and
> homerightcontainer, even though I've set top margin to
0px...
> -
Floating divs and scroll bar in div
I've been searching the postings and can't find an answer to
this. I'm trying to make #content a div that, when content is too
much for the div, scroll bar will appear and not expand the entire
design. I assigned a height to the div and added overflow:auto; but
it still doesn't work. Please advise! Thank you...again....
http://www.nsbcustomjewelry.com/DIVTEST.shtmlYou page is completely broken in Firefox and IE7.
You will need to go through your container widths because
they are not
correct. In FF for example, you can't see the right sidebar
nav, in IE7,
the content area is being dropped down.
If you remove the margin-left: 175px; from #content and
change the width to
around 322px; it moves it into position correctly, but you
need to narrow
the width of the #leftnav to at least 155px;
Work out the rest of your widths and the right sidebar should
show up ok.
The scrollbar does show up once you narrow down the width of
the content
area. At the moment, there's not enough content in there (at
the width you
have) to invoke a scrollbar.
Hope this helps :)
Nadia
Adobe® Community Expert : Dreamweaver
CSS Templates |Tutorials |SEO Articles
http://www.DreamweaverResources.com
~ Customisation Service Available ~
http://www.csstemplates.com.au
"SisAndi" <[email protected]> wrote in
message
news:f4783n$5ln$[email protected]..
> I've been searching the postings and can't find an
answer to this. I'm
> trying
> to make #content a div that, when content is too much
for the div, scroll
> bar
> will appear and not expand the entire design. I assigned
a height to the
> div
> and added overflow:auto; but it still doesn't work.
Please advise! Thank
> you...again....
>
>
http://www.nsbcustomjewelry.com/DIVTEST.shtml
> -
Background div do not support floating divs
I've created quite simple construction, but it doesn't work in way I want to.
I have wrapper which do not wrap up the floating divs placed in it as it should -
it shrinks to base size (top and bottom corners) and stays like that while floating substances maintain previously defined positions - only without background...
Any suggestions how to fix this?
The construction looks round about like this:
<body>
<div> div tag with height: 5px; contains top corners for layout </div>
<div class= "opened div tag with backround attributes (color and borders)">
<div>here comes the floating content (list with style set to: none;)
I set it inside the div with background attributes to have floating content wrapped into background color and borders
</div>
</div (here i close "background wrapper")>
<div> div tag with heightL 5px; contains bottom corners for layout </div>
</body>
Thanks.This is a bit of a shot in the dark but try overflow: hidden; in the CSS rule for your wrapper?
It would be much easier to see the page.
Martin -
Having some trouble aligning these div tags in Dreamweaver CC, I've tried various different things / even watched tutorials on how to fix common errors and still come up with nothing!
Any help would be really appreciated
I've attached pics of what I'm talking about!
I can send my code in if needed also.
I'm trying to get the main body to sit next to the two navigation div's..
also the 2 different navigation div's don't sit (auto left width) as the header is sitting in both screen shots?
Thanks!!!!
Live View Image -
Preview in browser (Google Chrome) -<!DOCTYPE>
<html>
<head>
<meta charset="UTF-8">
<title>Untitled Document</title>
<style>
#pageWrapper {
width: 96%;
max-width: 800px;
margin: 0 auto;
overflow: hidden;
background-color: #807C7D;
border: thin solid #000000;
#header { height:50px; width:800px;
background-color: #807C7D;
border: thin solid #000000;
#leftCol {
float: left;
width: 25%;
border-color: #000000;
#mainNavigation {
width: 200px;
height: 200px;
background-color: #807C7D;
border: thin solid #000000;
#healthInfoNavigation {
width: 200px;
height: 200px;
background-color: #807C7D
#rightCol {
width: 600px;
height: 200px;
float: left;
width: 75%;
overflow-x: visible;
overflow-y: scroll;
background-color: #807C7D;
border-color: #000000;
</style>
<link rel="stylesheet" href="css/ajxmenu.css" type="text/css">
</head>
<body>
<div id="pageWrapper">
<div id="header">
<div align="center">Content for header goes here</div>
</div>
<!-- end header -->
<div id="leftCol">
<div id="mainNavigation">
<div align="center">
<p>Content</p>
</div>
</div>
<!-- end mainNaviagtion -->
<div id="healthInfoNavigation">
<div align="center">Content for health info navigation goes here</div>
</div>
<!-- end heatlthInfoNavigation -->
</div><!-- end leftCol -->
<div id="rightCol">
<div align="center">Content for main body goes here </div>
</div>
<!-- end rightCol -->
</div>
<!-- end pageWrapper -->
</body>
</html> -
Horizontal Spry Menu Pushing my content to the right
Hello everyone. I am very new to Dreamweaver and so far I am loving the ease of use and how much I can do with it. However, I recently tried adding a spry menu bar - horizontally, but it has pushed my content to the right of the page. The web page is www.iowapva.org
Any help on getting this squared away is greatly appreciated. I want to learn so if there is something wrong that needs corrected or have advise on correcting the site, I am open.
Thanks,
BradAdd or modify the following
#page {
clear: both;
ul.MenuBarHorizontal ul {
position: absolute;
Personally I would add these to just above the </head> tag as in
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<style>
#page {
clear: both;
ul.MenuBarHorizontal ul {
position: absolute;
</style>
</head> -
Floating divs of different heights
I have a layout that a client requires that is 3 columns wide
I am trying to set it up with floating divs and the divs have different heights.
What is the best way to lay this out and is it possible to use Edge Reflow to do this as when I lay out the divs at my starting resolution and then start to change it for media queries the divs move from their starting positions.
Hope it clear what I'm trying to achieve.
Would I be better using Dreamweaver to do this than edge reflow?I think you are expeciencing someting similar to this user's post:
http://forums.adobe.com/message/5542351#5542351
We are looking at solutions, and it definitely helps us to understand how users experience the problem. -
I have created 9 left-floated DIV 3 a row with the last div of the first row taller than the first two, how can i make the first two div of the second row occupy the space on top of them instead of aligning to the bottom of the 3rd div in the first row.
It's difficult to envision your layout, considering a float left on 9 divs should have the effect of aligning them next to one another, from left to right, like so: http://www.webmagi.com/Tests/Floating-Divs.htm
Dreamweaver leaves much to be desired with regards to visually working with CSS based layouts. You might look into Stylizer 5 for this: http://www.stylizerapp.com/ (Great video intros) -
Hey TLF team,
Do you have any immediate plans to implement floating blocks instead of just floating images? I am currently implementing a stop-gap measure that splits the input up into multiple blocks, renders each to a different textflow, then lays them out on the page, but obviously this isn't optimal and if you guys are on the verge of implementing floating divs then I'll hold off!
The reason I ask this is that I noticed that Jin Huang posted 'We are implementing border feature and backgroundColor of "block element" now', which suggests that you might be implementing other block features too...
To confirm I am talking about the kind of block floats that would allow layouts similar to:
http://www.maxdesign.com.au/articles/css-layouts/two-fixed/
to be created in a single text flow.Thanks for your reply - in that case I shall continue with my original plan. It would be really cool if you guys could add this feature at some point as when you have a lot of floating divs as seperate TextFlows on the screen at once things can get slow and it would be nice if this was handled within a single TextFlow.
Congratulations on your work on TLF so far! -
Floating divs made to have equal heights
Hi all
Is there a CSS way to get two divs (that will have different
lengths of
text) to have the same height. If not CSS what other
techniques are there to
achieve this - or is it not possible
Thanks
B
http://www.visit-the-coqui.com
If you are thinking of a vacation to Puerto Rico
http://www.thegadgettraveler.com
Travel gadget and other news hereThanks Osgood - I did not think of the faux column option and
using it for
divs - I'll check that out - thanks
Thanks for the P7 link too
B
http://www.visit-the-coqui.com
If you are thinking of a vacation to Puerto Rico
http://www.thegadgettraveler.com
Travel gadget and other news here
"Osgood" <[email protected]> wrote in
message
news:gbg62d$14n$[email protected]..
>B wrote:
>> Hi all
>>
>> Is there a CSS way to get two divs (that will have
different lengths of
>> text) to have the same height. If not CSS what other
techniques are there
>> to achieve this - or is it not possible
>>
>> Thanks
>>
>
> You can use javascript, read this article about eqaul
height columns
>
>
>
http://www.projectseven.com/tutorials/css/pvii_columns/index.htm
>
>
> or you can wrap the two floated <divs> in another
<div> and use a
> repeating background image, google 'faux columns' -
Arranging a tight grid of floating divs with varying heights
When creating a grid using floating divs of varying height, the divs that carry over into the next row often find themselves in the second or third column rather than going immediately below the first div in the first column. I'm curious how I could make them fill in each column. I've attached some photos to better exemplify this.
Currently the first div in the second row is only moving into the 4th column do to the varied heights of the divs in the first row.
I'd like to have the divs look like this:Division-itis. You don't need to place each thumbnail inside it's own floated division. Why not just insert the thumbnail images into a single container like so?
<div id="thumbnails" style="width:900px">
Image here, image here, image here, etc...
</div>
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb -
WMA Player Plug-in in Floating DIV
Here is a 'test' page that I've created:
http://www.justus.ca/test/vocab/professions.html
It has a 'floating' Windows Media Play plug-in within a
floating div at the
upper left of the screen. I can not get it to play, so I
copied the player
and pasted it into the first cell of the table as a 'test'.
That player
plays fine. It is an exact duplicate of the player in the
floating div
other than where it is located. Can anyone tell me how I can
get the
floating player to work? I want the player to stay fixed on
the screen
while people scroll the page to follow the audio being
played.Try using this website
http://cit.ucsf.edu/embedmedia/
Note its easily to test an online media file then a local
media file I find.
For online files you can simply type the web address into the
media player script
for local file it has to be something like this src=file://
etc..
not just src=file.mp3
so try to upload you music or video file onto the internet
then
use the generator on the website
easy peasy
Bookmark it its the best around....
Daniel Lee
| CEO - Lead Developer
| Developer Trainer
|
http://www.onemegamarket.com -
Ipod nano 6 won't start. I have already tried pushing the volume down & on switch
My nano 6th Generation won't start. I have already tried pushing the volume down & on switch. I just have a black screen.
See the appropriate section of this Apple support document.
iPod nano (6th generation): Hardware troubleshooting
B-rock
Maybe you are looking for
-
Mac seems slow to load web pages and email since mavericks upgrade
Since upgrade from Mountain Lion to Mavericks on my iMac, web pages seem a lot slower to load on screen. Also, when I open my mail inbox, the mail content (wording) takes a long time before appearing on the right hand side, then followed a little lat
-
The bank GL line items are getting revaluated as per exchange rate
We have done config for foreign currency valuation for customers and vendors.Earlier we did for GLs also but now that is deleted. Now an advance in USD is posted. The entry is there in Rs in pass book entry in FF67. At the time of bank reconciliation
-
i have made a line graph in applet and i want to call that applet in my jsp project's page.... <jsp:plugin type= "applet" codebase="." code= "ibill.lineGraph.class" width="400" height="400"> </jsp:plugin> but it dosnt show the applet and give error o
-
SQL Server 2005 DB as a source system connection
Dear all, We are planning to connect SQL server 2005 DB as one of the source system connection in RSA1. Please let me know how to do and if procedure/steps doc for the same. please do the needful. Thanks in advance. Regards, Mohankumar.G
-
Illustrator CS4 saves two files?
Hi all, hopefully someone can help? When I save a file as an .eps from Illustrator it also saves the same file but adds _01 onto the end so I end up with twofiles saved of th same thing? Does anyone know how to stop this? Many thanks, S