473,597 Members | 2,804 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

forcing a new line using the float tag

35 New Member
hi all,

I have a webpage with just images and am using a liquid layout for my css, go to http://www.christinebe c.com/About CB/selected_editor ials.htm to see what I am talking about, after the last image (vogue shops) on the page, I want to force a new line so I can add a new heading "catalogues " and then put more images under this heading.
This is my attempt:

<br class="clearbot h">
<div id="contents">
<h2>CATALOGUE S</h2></div>
<div class="float">
<a href="../images/HP_France_catal ogue_big.jpg">< img src="../images/HP_ France_ catalogue_ small.jpg" alt="HP France 2002 catalogue" border="0"></img></a></div>

div.clearboth {clear: both;}

div#content {margin-left: auto; margin-right: auto; color: #000000; background: #ffffff; text-decoration: none;}

when I preview the page in firefox, the word "catalogue" is in the right hand upper corner of the page and the HP France image is next to the "vogue shops" image which I don't want, I want it on a new line under the heading "catalogues "

Are there other ways of forcing a new line besides the br "clear:both "

Dec 7 '06 #1
1 4365
1,892 Recognized Expert Top Contributor
Why don't you just use a line break <br />?
Dec 7 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Stan Brown | last post by:
This seems simple, but I've been unable to figure out how to do it. I have a quotation in a paragraph of (let's assume) more than one line. I want to put the speaker's name at the end of the last line of the paragraph if there's room, otherwise at the right edge of a new line, automatically according to the user's font and window width: blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah...
by: Rennie deGraaf | last post by:
Is it possible to force adjacent block elements to have the same height, without specifying that height? In this page (http://pages.cpsc.ucalgary.ca/~degraaf/test/index3.html), I have a bunch of (red-bordered) DIVs containing an image thumbnail and a caption. These DIVs are floated to the left, and I used JavaScript to center them (since there is no float: center and most browsers don't support display: inline-block). I know the...
by: Zach | last post by:
Hi, I am completely new to VC#.NET graphics code and would like some help to stop me wasting my time up blind alleys. I am looking for a line charting code example. Nothing posh or airy fairy, just a simple area with annotated axis and a graph. I am not looking for code to create a multi applicable graphic contol and I don't want to buy a library. I have been around the Code Project and I
by: Dan Krantz | last post by:
I have the following template to ensure that a given number (val) falls into a range (between vmin & vmax): template<typename T> T ForceNumericRange( const T& val, const T& vmin, const T& vmax) { T retVal = val; if ( retVal < vmin ) retVal = vmin;
by: cocco | last post by:
I'm trying to have several <hr>, all on the same line, even if this can seem a nonsense, with the shortest code. So, I do not want to use abolute positioning and virtual div. Is it possible to obtain such for the following html code: <hr style="width: 20px;"> <hr style="width: 20px;"> <hr style="width: 20px;"> <hr style="width: 20px;">
by: ashkaan57 | last post by:
Hi, I am trying to put text on left and right side of the page and used: <div> <span>blah blah</span> <span style="float:right">blah blah</span> </div> The 2nd text does go to the right but the next line. What am I doing wrong? TIA.
by: Claire | last post by:
I've created a formula field called "BaseField" in a crystal report in VS 2003. At run time, I dynamically change the formula depending which field the user selects to view for example FieldName = "{@DistanceKm}"; rpt.DataDefinition.FormulaFields.Text = FieldName; At run time, even though I've set decimal places to 2 in the property editor
by: Deathwing | last post by:
Helll I am trying to figure out how to enter arguments throught he command line for a program I have created that is already working. I just want to adapt it to work at the command line. Here is the code. import random print\ """ #---------------# # RPG 1.0 # #---------------#
by: Jason Carlton | last post by:
Sorry if this goes through twice, I had an error the first time that I submitted. I have a bit of text that has a varying length, and I'm wanting to float text to the right. The problem is that the text needs to wrap to 2 lines instead of 1, and I'm wanting to float the text to the right of the second line. Something like this:
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.