| | |
Float not working in Firefox.
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2005
Posts: 104
Reputation:
Solved Threads: 0
Hello,
This is the css:
And the HTML:
The <u>l items are supposed to float left, and the <li> items are supposed to float to the top, with text in the middle.
In Internet Explorer, this way I can achieve this result, in Firefox I can't. Even though in the CSS file I put the
in the ul, the text will be on the left, and not the image.
What would be the way to fix this?
If you have another suggestion to make some images float left and the others up, it is very welcome.
Thank you.
This is the css:
HTML and CSS Syntax (Toggle Plain Text)
ul { float: left; /*Het plaatje van de persoon*/ position: fixed; margin-left: 20px; margin-top: 2px; } li { float: top; postion: fixed; margin left: 20px; margin-top: 5px; list-style: none; } p { margin left: 5px; } body { background-color: #66FF66; }
And the HTML:
HTML and CSS Syntax (Toggle Plain Text)
<html> <head> <title>Ding</title> <link rel="stylesheet" type="text/css" href="http://opacity.atspace.com/style2.css"> </head> <body> <li> <img src="http://www.carmelemmen.nl/img/logoCarmelEmmen.gif" width="200" heigth="150" > <img src="http://www.dogbreedinfo.com/images17/NorthernInuitDogFreya14wks.JPG" width="200" heigth="150" > <img src="http://www.shoarns.com/Unknown%20bird%20-%20Cincinnatti%20Zoo%20-%20D%20Byrd.jpg" width="200" heigth="150" > </li> <ul> <img src="http://www.zefhemel.com/upload/2008/02/funny-cat.jpg" width="200" heigth="150"> </ul> <p> Text Text </p> </body> </html>
The <u>l items are supposed to float left, and the <li> items are supposed to float to the top, with text in the middle.
In Internet Explorer, this way I can achieve this result, in Firefox I can't. Even though in the CSS file I put the
HTML and CSS Syntax (Toggle Plain Text)
float: left;
What would be the way to fix this?
If you have another suggestion to make some images float left and the others up, it is very welcome.
Thank you.
Last edited by Pim; Feb 1st, 2009 at 11:15 am.
There is no
float takes left right none
float :top; propertyfloat takes left right none
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
Its also very bad form, to get your images from someone elses servers.
Last edited by almostbob; Feb 1st, 2009 at 6:27 pm.
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
The normal way to control where things are on the page is to control the order the items are listed in the html file. Objects are placed from top to bottom, and within a line, from left to right.
Do NOT think of a web page as a sheet of paper that you place things on in various places. Think of it as a scroll that grows longer downward as you add more content.
Do NOT think of a web page as a sheet of paper that you place things on in various places. Think of it as a scroll that grows longer downward as you add more content.
Daylight-saving time uses more gasoline
•
•
Join Date: Jun 2005
Posts: 104
Reputation:
Solved Threads: 0
Okay well I modified the design. I've got a new problem with the float property now: I want to make an image float to the left, with a box with text in in on the right. In IE this works fine, Firefox however insists on placing the banaan.jpg over the box. Is this fixable?
CSS:
The HTML code:
Thank you.
CSS:
HTML and CSS Syntax (Toggle Plain Text)
div.box /* Zorgt voor het textvak in het midden. Zoek naar div bij w3schools. */ { color: green; margin: 5px; border: 1px solid black; width: 400px; height: 510px; float: none; } body { background-color: #FFFFFF; } img.onder { margin: 5px,5px,5px,5px; float: left; } p.text { margin: 5px; }
The HTML code:
HTML and CSS Syntax (Toggle Plain Text)
<html> <head> <title>Ding</title> <link rel="stylesheet" type="text/css" href="style2.css"> </head> <body> <img class="onder" src="banaan.jpg"> <div class="box"> <p class="text"> Hier komt de tekst. </p> </div> </body> </html>
Thank you.
![]() |
Similar Threads
- Website NOT showing menu hover in Internet Explorer (Site Layout and Usability)
- Urgent - CSS Not working in IE, Again. (HTML and CSS)
- Float Not working (HTML and CSS)
- a:hover not working in Firefox. (HTML and CSS)
- Newbie in IE hell (Site Layout and Usability)
- CSS browser compatibility ??? (HTML and CSS)
- Pesky IE Hickey (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: focus on frame
- Next Thread: CSS Help..Plz
| Thread Tools | Search this Thread |
Tag cloud for HTML and CSS
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash font fonts form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl






