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

Need help clearing this div.

<div id="bottomlinks">
<h3>Get Info On</h3>
<ul>
<li><a href="#">Search Engine Optimization</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">HTML / XHTML</a></li>
<li><a href="#">AJAX</a></li>
<li><a href="#">Web Design</a></li>
<li><a href="#">Graphic Design</a></li>
<li><a href="#">Print Design</a></li>
<li><a href="#">Illustration</a></li>
<li><a href="#">Google Adwords</a></li>
<li><a href="#">Javascript</a></li>
<li><a href="#">RSS</a></li>
<li><a href="#">Photoshop</a></li>
<li><a href="#">Dreamweaver</a></li>
<li><a href="#">Hosting</a></li>
</ul>
</div>
I need to clear this div,

I saw one usage of <br /after the last <liwith a clear applied to
it, but I would rather not use structural markup for this.

Nov 11 '06 #1
10 1852
In article
<11**********************@b28g2000cwb.googlegroups .com>,
"FuzzyLogik" <ta****@gmail.comwrote:
<div id="bottomlinks">
<h3>Get Info On</h3>
<ul>
<li><a href="#">Search Engine Optimization</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">HTML / XHTML</a></li>
<li><a href="#">AJAX</a></li>
<li><a href="#">Web Design</a></li>
<li><a href="#">Graphic Design</a></li>
<li><a href="#">Print Design</a></li>
<li><a href="#">Illustration</a></li>
<li><a href="#">Google Adwords</a></li>
<li><a href="#">Javascript</a></li>
<li><a href="#">RSS</a></li>
<li><a href="#">Photoshop</a></li>
<li><a href="#">Dreamweaver</a></li>
<li><a href="#">Hosting</a></li>
</ul>
</div>
I need to clear this div,

I saw one usage of <br /after the last <liwith a clear applied to
it, but I would rather not use structural markup for this.
You need to be posting some urls... ;-) What do you mean clear
this div? Do you mean you want to go on under neath it? Just have
another div, it is automatic. Not enough space? OK, make the next
div with a bigger top margin. Or this div with a bigger bottom
margin. Floating bottomlinks somehow and want the next to clear
it? Use clear:both (that will get it) on the next...

--
dorayme
Nov 12 '06 #2

dorayme wrote:
In article
<11**********************@b28g2000cwb.googlegroups .com>,
"FuzzyLogik" <ta****@gmail.comwrote:
<div id="bottomlinks">
<h3>Get Info On</h3>
<ul>
<li><a href="#">Search Engine Optimization</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">HTML / XHTML</a></li>
<li><a href="#">AJAX</a></li>
<li><a href="#">Web Design</a></li>
<li><a href="#">Graphic Design</a></li>
<li><a href="#">Print Design</a></li>
<li><a href="#">Illustration</a></li>
<li><a href="#">Google Adwords</a></li>
<li><a href="#">Javascript</a></li>
<li><a href="#">RSS</a></li>
<li><a href="#">Photoshop</a></li>
<li><a href="#">Dreamweaver</a></li>
<li><a href="#">Hosting</a></li>
</ul>
</div>
I need to clear this div,

I saw one usage of <br /after the last <liwith a clear applied to
it, but I would rather not use structural markup for this.

You need to be posting some urls... ;-) What do you mean clear
this div? Do you mean you want to go on under neath it? Just have
another div, it is automatic. Not enough space? OK, make the next
div with a bigger top margin. Or this div with a bigger bottom
margin. Floating bottomlinks somehow and want the next to clear
it? Use clear:both (that will get it) on the next...

--
dorayme
sorry :)

http://www.phazm.net/newphazm/

Nov 12 '06 #3
In article
<11**********************@i42g2000cwa.googlegroups .com>,
"FuzzyLogik" <ta****@gmail.comwrote:
dorayme wrote:
In article
<11**********************@b28g2000cwb.googlegroups .com>,
"FuzzyLogik" <ta****@gmail.comwrote:
<div id="bottomlinks">
<h3>Get Info On</h3>
<ul>
<li><a href="#">Search Engine Optimization</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">HTML / XHTML</a></li>
<li><a href="#">AJAX</a></li>
<li><a href="#">Web Design</a></li>
<li><a href="#">Graphic Design</a></li>
<li><a href="#">Print Design</a></li>
<li><a href="#">Illustration</a></li>
<li><a href="#">Google Adwords</a></li>
<li><a href="#">Javascript</a></li>
<li><a href="#">RSS</a></li>
<li><a href="#">Photoshop</a></li>
<li><a href="#">Dreamweaver</a></li>
<li><a href="#">Hosting</a></li>
</ul>
</div>
>
>
I need to clear this div,
>
I saw one usage of <br /after the last <liwith a clear applied to
it, but I would rather not use structural markup for this.
You need to be posting some urls... ;-) What do you mean clear
this div? Do you mean you want to go on under neath it? Just have
another div, it is automatic. Not enough space? OK, make the next
div with a bigger top margin. Or this div with a bigger bottom
margin. Floating bottomlinks somehow and want the next to clear
it? Use clear:both (that will get it) on the next...

--
dorayme

sorry :)

http://www.phazm.net/newphazm/
You could try moving the very last </divup to above the opening
of the "bottomlinks" div...

--
dorayme
Nov 12 '06 #4

dorayme wrote:
In article
<11**********************@i42g2000cwa.googlegroups .com>,
"FuzzyLogik" <ta****@gmail.comwrote:
dorayme wrote:
In article
<11**********************@b28g2000cwb.googlegroups .com>,
"FuzzyLogik" <ta****@gmail.comwrote:
>
<div id="bottomlinks">
<h3>Get Info On</h3>
<ul>
<li><a href="#">Search Engine Optimization</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">HTML / XHTML</a></li>
<li><a href="#">AJAX</a></li>
<li><a href="#">Web Design</a></li>
<li><a href="#">Graphic Design</a></li>
<li><a href="#">Print Design</a></li>
<li><a href="#">Illustration</a></li>
<li><a href="#">Google Adwords</a></li>
<li><a href="#">Javascript</a></li>
<li><a href="#">RSS</a></li>
<li><a href="#">Photoshop</a></li>
<li><a href="#">Dreamweaver</a></li>
<li><a href="#">Hosting</a></li>
</ul>
</div>


I need to clear this div,

I saw one usage of <br /after the last <liwith a clear applied to
it, but I would rather not use structural markup for this.
>
You need to be posting some urls... ;-) What do you mean clear
this div? Do you mean you want to go on under neath it? Just have
another div, it is automatic. Not enough space? OK, make the next
div with a bigger top margin. Or this div with a bigger bottom
margin. Floating bottomlinks somehow and want the next to clear
it? Use clear:both (that will get it) on the next...
>
--
dorayme
sorry :)

http://www.phazm.net/newphazm/

You could try moving the very last </divup to above the opening
of the "bottomlinks" div...

--
dorayme
That's not the result I want, though.

http://www.phazm.net/newphazm/index.gif

Nov 12 '06 #5
FuzzyLogik wrote:
dorayme wrote:
>>In article
<11**********************@i42g2000cwa.googlegrou ps.com>,
"FuzzyLogik" <ta****@gmail.comwrote:
[exchange snipped]
>>>http://www.phazm.net/newphazm/

You could try moving the very last </divup to above the opening
of the "bottomlinks" div...

That's not the result I want, though.

http://www.phazm.net/newphazm/index.gif
I'm still not real clear on what you want to do. Does it help you near
your goal if you do this:

#bottomlinks ul {
width: 520px;
background-color:#303b3c;
margin:0 0 8em 0; /* <=change bottom margin from 12px to 8em */
padding:7px;
}
and add the same background color to #bottomlinks ul li?

I mean, does it start to *look* like what you want?

--
John
Nov 12 '06 #6

John Hosking wrote:
FuzzyLogik wrote:
dorayme wrote:
>In article
<11**********************@i42g2000cwa.googlegroup s.com>,
"FuzzyLogik" <ta****@gmail.comwrote:
[exchange snipped]
>>http://www.phazm.net/newphazm/

You could try moving the very last </divup to above the opening
of the "bottomlinks" div...
That's not the result I want, though.

http://www.phazm.net/newphazm/index.gif
I'm still not real clear on what you want to do. Does it help you near
your goal if you do this:

#bottomlinks ul {
width: 520px;
background-color:#303b3c;
margin:0 0 8em 0; /* <=change bottom margin from 12px to 8em */
padding:7px;
}
and add the same background color to #bottomlinks ul li?

I mean, does it start to *look* like what you want?

--
John
Yes, it makes it start to *look* right, but certainly not the code I am
looking for.

I basically want it to look like it does in IE, in FF.

To do that, I need to clear the float on the #bottomlinks, but I need a
semantic way of clearing it.

Nov 12 '06 #7
FuzzyLogik wrote:
>
I need to clear the float on the #bottomlinks, but I need a
semantic way of clearing it.
http://www.quirksmode.org/blog/archi...ng_floats.html
http://www.positioniseverything.net/easyclearing.html

--
Berg
Nov 12 '06 #8
FuzzyLogik wrote:
>>>>In article
<11**********************@i42g2000cwa.googlegr oups.com>,
"FuzzyLogik" <ta****@gmail.comwrote:

>http://www.phazm.net/newphazm/
>
I basically want it to look like it does in IE, in FF.
I hadn't even tried it in IE, just looked at your gif.
To do that, I need to clear the float on the #bottomlinks, but I need a
semantic way of clearing it.
See Bergamot's link, but maybe also try this:

#bottomlinks ul {
width:32em;
background-color:#303b3c;
margin:0 0 1em 0;
padding:.5em;
min-height:8em;
}
#bottomlinks ul li {
list-style-type:none;
float:left;
width:15em;
}
My suggested changes are slightly indented. Not tested in IE.

I believe you'll have (more) trouble if you don't switch to ems or %.
Watch what happens when you resize the text.

--
John

Nov 12 '06 #9
..oO(FuzzyLogik)
>To do that, I need to clear the float on the #bottomlinks, but I need a
semantic way of clearing it.
#bottomlinks ul {
overflow: hidden;
...
}

Micha
Nov 12 '06 #10
In article
<11*********************@i42g2000cwa.googlegroups. com>,
"FuzzyLogik" <ta****@gmail.comwrote:
>
http://www.phazm.net/newphazm/
You could try moving the very last </divup to above the opening
of the "bottomlinks" div...

--
dorayme

That's not the result I want, though.

http://www.phazm.net/newphazm/index.gif
Moving the div up as I suggested made it look nothing like this
in my FF (on a Mac). It made the "Get Info On" and list move out
of the brighter green zone and down into the olive green
background.

--
dorayme
Nov 13 '06 #11

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

Similar topics

18
by: Niels | last post by:
Hi group, I have some problems with clearing floated divs. My usual method works fine in Konqueror, but not in Firefox. Here's an example: <html><body> <div id='left' style='float:left;...
0
by: Gary | last post by:
I have a problem with the datagrid not clearing when the datasource changes, a few fields remain on the screen and even when new data would fill those grid squares the old data remains. I wind...
11
by: Karl Irvin | last post by:
My program looks like this: Dim db As DAO.Database, rst As DAO.Recordset Set db = CurrentDb Set rst = db.OpenRecordset("SELECT * FROM tUnpaidInvoiceIDs WHERE TxnType = 'Invoice'") Do some...
4
by: Roubles | last post by:
Hi All, Quick question; what is the difference between initializing and clearing a structure like this: mystruct_t a = {0}; and initializing and clearing it like this:
1
by: raghavendra | last post by:
Hi, i am facing problem clearing screen in console application. As, in C++ we have clrscr(); Is? their any similar type of function is avaliable.. Raghavendra...
9
by: Werner Hempel | last post by:
Hello, I'm trying to do a simple three column layout, with two divs (#left and #right) floating left and right, and the #content-div with margins in between, and all three in a wrapper-div. The...
0
by: negmat | last post by:
Hello everyone, I have the following question: I am aware that the objects currently in the cache can be viewed by issuing the following command: SELECT * FROM master.dbo.Syscacheobjects ...
1
by: Vayse | last post by:
I have a databound form, frmClients. One of the field is a combo box, comDepartment, which lets a user select a department for the Client. But I can't figure out how to clear the box. That is,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.