HTML & CSS
I have a visual problem on my wife's site at Applique, Bear, Cloth doll, Stitcherys, Stitcheries, Quilt, Bags patterns and kits - Petals & Patches.
It is set up as a 2 column site with the navigational buttons on the left. You will notice that the context of the right column wraps around under the bottom of the left column. I don't wish to have that behaivour, rather the right column should stay in it's own position.
I am sure that the solution is frightfully simple (I did a quick search but not knowing what to call the problem I found no obvious previous thread(s))
The code is question is
<div id="hdr" align="center"><img src="images/banner800.jpg" alt="" border="0" width="361" height="154" />
</div> <!-- end of hdr -->
<div id="bodyblock" align="right">
<!-- buttons go here -->
</div> <!-- end of l-col -->
<!-- content here -->
</div> <!-- end of cont -->
</div> <!-- end of bodyblock -->
<p class="disclaimer">Every attempt has been made to ensure the accuracy of the information provided on this website. Please advise us if you have any concerns relating to this site.
Contact the webmaster for further information.</p>
<p class="webmaster">Site built and maintained by <a class='navlink' href='mailto:email@example.com?subject=Request for the Webmaster of Petals and Patches'>TIGER TIM</a>.</p>
var now = new Date();
document.write("Site design © Petals and Patches 2004 -" + now.getFullYear() + ".");
document.write("Last updated on " + document.lastModified.substring(3,5) + "/" + document.lastModified.substring(0,2)+ "/" + document.lastModified.substring(6,10) + "</p>");
</div> <!-- end of ftr --->
</div> <!-- end of outer -->
There is an outer wrapper called 'outer' :rolleyes:. A header, bodyblock contains the l-col (the left column) & right column (cont) and a footer to finsish off.
Admittedly I sometimes wonder why I have both outer and bodyblock. It was a long time ago and maybe I don't need both of them?
background: none repeat scroll 0 0 #FFFFDF;
border: 0 solid #00FFFF;
<font color='"Red"'>width: 650px;
You'll also need to add
font-family: Garamond,"Times New Roman";
<font color='"Red"'>clear: both;</font>
Thank you for that. They work fine though I am not entirely sure why.
makes some sense but
has me puzzled.
Try the page without it. That element jumps up to the left side. If you want it at the bottom, you have to tell it not to wrap around the floated items above by saying—"make sure it stands clear of any floated items, both left and right". Perhaps clear: right would have been enough in this case. Typing "both" was one fewer character, and I'm lazy.
Rather than start this thread again I'll reuse my existing one.
I have been fiddling around with my wife's site, trying to 'improve it'. As seems usual with my work any changes made have unforeseen effects that seem hard to rollback.
Looking at http://www.petalsandpatches.com/contactus.hm you will see that the content in the right column wraps around the bottom of the left column.
Whilst making the suggestions kindly suggested earlier and trying for some minor (!) formatting changes in the left column I arrived at what you see at http://www.petalsandpatches.com/contactusDec11-1.htm.
The left column is above that of the right and part of the right column, at the very end, seems to have disappeared.
contactus.htm uses petalsandpatches.css & petalsandpatches-layout.css
contactusDec11-1.htm uses petalsandpatches.css & petalsandpatches-layoutDec11.css
Looking back at the work I have done the only changes in the -layout.css between the versions is
margin:2px 0px 2px 0px; /* added 10/12/11 */
border:0; /* added 11/04/11 */
height:30px; /* added 10/12/11 */
border-width: 1 1 1 1;
border: 0px solid #00FFFF;
font-size: 14px; /* added 10/12/11 */
margin-left:auto; /* added 10/12/11 */
margin-right:auto; /* added 10/12/11 */
text-align: center; /* added 10/12/11 */
/*border:1px solid #FF0000; */
The changes are marked with /* added 10/12/11 */.
What have I done?
Not sure quite how you want this laid out now, but it would help to add this:
background: none repeat scroll 0 0 #FFFFDF;
border: 0 solid #FAAF00;
<font color='"#FF0000"'>overflow: hidden;</font>
After further mucking around and using ralph.m's suggestions I am still no closer to resolving my visual problem.
If you go to http://www.petalsandpatches.com/indexSep12.htm you can see my latest attempts.
How do I get the LH column (green) to continue down until it reaches the bottom of the orange box so that the text does not wrap underneath the navigation column?
Hm, unless you've changed your HTML, I made a mistake above.
You could either do this:
or this, which looks a bit nicer:
I thought the tiges would make the finals this year.
So did I. Thought I would buy finals tickets for the 1st time in a decade. Then those 3 close losses. :nono:
O well, tere will be some good games anyway.
Did those code options help/make sense?
That worked a treat. If you go to http://www.petalsandpatches.com/indexSep12.htm you can see the result.
Had me going for awhile though. I could see no change. Then remembered to hit refresh.
Cool. Glad that helped. (And yes, refreshing the page is often a crucial step that causes a lot of confusion. )
This topic is now closed. New replies are no longer allowed.