IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Background Error Ff, cant there be just 1 browser?
Distortion
post Nov 2 2009, 09:51 PM
Post #1


Newbie
*

Group: Members
Posts: 21
Joined: 8-October 09
Member No.: 34,379



I have a site with a gradient background. In this background I have a white bar where the main content goes. The content is made up out of other boxes so I get something like.

CODE
<div class="content">
<div class="box1">
   blehblehbleh
  </div>
  <div class="box1">
   blehblehbleh
  </div>
<div class="box2">
   blehblehbleh
  </div>
<div class="box3">
   blehblehbleh
  </div>
</div>


I haven't specified a height for 'content' because I want it to wrap around the other boxes.
IE knows what to do, but firefox completely ignores the boxes and stops somewhere completely random.

Any suggestions?
Go to the top of the page
 
+Quote Post
thescientist
post Nov 3 2009, 01:21 AM
Post #2


Likes gettin' it on!
***

Group: Members
Posts: 643
Joined: 24-May 08
From: Rhode Island, USA
Member No.: 22,266
Languages: (X)HTML, CSS, Javascript, PHP/MySQL, XML, Java (still gettin a grip on those last couple)



It would certainly help me, and for others I'm sure, if we could actually see what you're talking about.

This post has been edited by thescientist: Nov 3 2009, 01:22 AM
Go to the top of the page
 
+Quote Post
how2html
post Nov 3 2009, 03:00 AM
Post #3


Newbie
*

Group: Members
Posts: 9
Joined: 24-October 09
Member No.: 34,763
Languages: (X)HTML, CSS, JavaScript, PHP, SQL, Java, C++ (still working on the last three)



QUOTE (Distortion @ Nov 2 2009, 01:51 PM) *
CODE
<div class="content">
<div class="box1">
   blehblehbleh
  </div>
  <div class="box1">
   blehblehbleh
  </div>
<div class="box2">
   blehblehbleh
  </div>
<div class="box3">
   blehblehbleh
  </div>
</div>


I really don't get the question. You are going to have to explain further, or give a link to your webpage.
Go to the top of the page
 
+Quote Post
Distortion
post Nov 3 2009, 03:05 PM
Post #4


Newbie
*

Group: Members
Posts: 21
Joined: 8-October 09
Member No.: 34,379



-

This post has been edited by Distortion: Nov 3 2009, 07:02 PM
Go to the top of the page
 
+Quote Post
jlhaslip
post Nov 3 2009, 03:52 PM
Post #5


Devoted Member
*****

Group: Members
Posts: 2,514
Joined: 27-October 06
From: South Eastern BC, in the Rockies
Member No.: 8,494
Languages: (x)html, css, (some) php, nothing tricky...



.memberbox, .ratebox are presently positioned using 'absolute' methods.
check out the 'float' method for positioning the second column.
Float, margin and padding are what you need to study.
Lots of 2-column layouts are to be found on GOOGLE.
Go to the top of the page
 
+Quote Post
thescientist
post Nov 3 2009, 04:30 PM
Post #6


Likes gettin' it on!
***

Group: Members
Posts: 643
Joined: 24-May 08
From: Rhode Island, USA
Member No.: 22,266
Languages: (X)HTML, CSS, Javascript, PHP/MySQL, XML, Java (still gettin a grip on those last couple)



no doctype either! (IMG:style_emoticons/default/ohmy.gif)

check this out and tidy your page up too...
validator.w3.org
Go to the top of the page
 
+Quote Post
Distortion
post Nov 3 2009, 06:57 PM
Post #7


Newbie
*

Group: Members
Posts: 21
Joined: 8-October 09
Member No.: 34,379



float sucks. If I use float my box goes everywhere exept where I want it, my page is perfectly tidy if you don't like it tidy it up yourself, you might be right about the doctype though, margin and padding have influence on the rest of your page which I don't want, and google layouts are google layouts, not my layouts.
I'll figure this out myself thank you.

This post has been edited by Distortion: Nov 3 2009, 06:57 PM
Go to the top of the page
 
+Quote Post
thescientist
post Nov 3 2009, 08:22 PM
Post #8


Likes gettin' it on!
***

Group: Members
Posts: 643
Joined: 24-May 08
From: Rhode Island, USA
Member No.: 22,266
Languages: (X)HTML, CSS, Javascript, PHP/MySQL, XML, Java (still gettin a grip on those last couple)



QUOTE (Distortion @ Nov 3 2009, 01:57 PM) *
float sucks. If I use float my box goes everywhere exept where I want it, my page is perfectly tidy if you don't like it tidy it up yourself, you might be right about the doctype though, margin and padding have influence on the rest of your page which I don't want, and google layouts are google layouts, not my layouts.
I'll figure this out myself thank you.


wow, ok, sorry we're all just trying to help. There's really no need for attitude when you're the one coming to a community for help.

But still, we persist on anyway...

By setting a doctype, you force the browser into rendering a certain way, one which might be a bit more predictable, and also something you could anticipate for. The reason people recommend float is because other position attributes are somewhat unreliable and tend to make things get all wonky, and floats, padding's, and margin's generally accomplish most of what people require when it comes to positioning elements. Validating, with a good (read: strict DTD) is a good way to reduce the number of potential rendering conflicts that can arise cross-browser, and will make you're code more readable, reliable, standards compliant, and scalable. As far as 'Google layouts', I think he just meant that there are plenty of examples out there to help you find what you're looking for, and then you could come back and ask more questions if you were still confused. Most people just suggest Google because I think these days it's the most common search engine.

Hope that clears some things up for you. Good practices are better to adopt early on, and you'll thank us for showing you the way. The people here know what they are doing because a lot of them do this professionally or are just innately good at this kind of stuff. I would just take the time to listen first before simply dismissing what has been good advice and offerings of assistance.

This post has been edited by thescientist: Nov 3 2009, 08:23 PM
Go to the top of the page
 
+Quote Post
Synook
post Nov 4 2009, 04:51 AM
Post #9


53 79 6E 6F 6F 6B 0D 0A
*****

Group: Members
Posts: 4,750
Joined: 14-July 07
From: Australia
Member No.: 15,617
Languages: (X)(HT)ML, CSS, PHP, SQL, JavaScript, Java (a bit)



Note that floats, rather than absolute positioning, are the correct way to lay things out.
Go to the top of the page
 
+Quote Post
Distortion
post Nov 4 2009, 09:33 PM
Post #10


Newbie
*

Group: Members
Posts: 21
Joined: 8-October 09
Member No.: 34,379



ok I'm sorry, its just that on every site I've asked this untill now people gave me the same short answer like, oh it's your doctype. But it isn't. And I got a little angry because I still haven't found why FF does this.
I've validated it, but I didn't get any errors except for not specifying the doctype.
I can't really find the thing I want on google. They'll have pretty much the same as I had, but without the white content box that isn't working on my site.
I removed the link because the php/mysql scripts are still very unsafe.

Using floats is what I tried to do first, but I can't locate something higher than its original position with float.

(IMG:http://tchracoon.000a.biz/pictures/Naamloos.jpg)
This is what I want. When I use float on the left boxes, it'll go next to the last item instead of next to the first. Hence I used float only for the items and not for the boxes.
Go to the top of the page
 
+Quote Post
thescientist
post Nov 4 2009, 09:51 PM
Post #11


Likes gettin' it on!
***

Group: Members
Posts: 643
Joined: 24-May 08
From: Rhode Island, USA
Member No.: 22,266
Languages: (X)HTML, CSS, Javascript, PHP/MySQL, XML, Java (still gettin a grip on those last couple)



This is why he suggested a two column layout. Have a column/container/div for the items and another column/container/div for your boxes.

<div id="container" width="700px">

<div id="boxes" padding-left="500px">
boxes
</div>

<div id="items "float:left">
items
</div>

</div>

or something like that. that was only meant as a quick illustration, the styles are obviously not declared right and should be in a CSS, but again, google will have this kind of info. seriously though, its the first link!
Go to the top of the page
 
+Quote Post
Distortion
post Nov 5 2009, 09:20 AM
Post #12


Newbie
*

Group: Members
Posts: 21
Joined: 8-October 09
Member No.: 34,379



Please don't pretend I'm stupid.
The only thing I wanted to know is why firefox doesn't act the way IE does and if there was a workaround.
Since you're not able to answer that question I'll use your 'google' method. My original question was not 'how to do a 2 column css layout' so that google link is slightly inappropriate. However, because it seems to be a fact that "floats, rather than absolute positioning, are the correct way to lay things out. "
I'll reprogram my css with 2 extra boxes.

Please note that with absolute positioning everything worked great, except for the interpreting mistake by firefox.
Go to the top of the page
 
+Quote Post
Synook
post Nov 5 2009, 09:45 AM
Post #13


53 79 6E 6F 6F 6B 0D 0A
*****

Group: Members
Posts: 4,750
Joined: 14-July 07
From: Australia
Member No.: 15,617
Languages: (X)(HT)ML, CSS, PHP, SQL, JavaScript, Java (a bit)



Did it work in Webkit et al.? One of the problems with absolute positioning is that it doesn't exactly work that well cross-browser. Also, it doesn't work as well with dynamic content, and breaks up the flow of elements. It is still appropriate to use absolute positioning in some cases, but not for the overall document layout.
Go to the top of the page
 
+Quote Post
Distortion
post Nov 6 2009, 02:07 PM
Post #14


Newbie
*

Group: Members
Posts: 21
Joined: 8-October 09
Member No.: 34,379



Thanks for that tip, i'll keep that in mind.
The problem is that I've removed all absolute positions and it still doesn't do what I want. At least the browser support is consistent now, IE also doesn't seem to notice the content box. There must be a programming error somewhere, I'll look into that again.
I don't know what Webkit is, i tried to download the program (i have windows vista) but it gave me an error when I started FindSafari.exe

Thank you for the help so far.
Go to the top of the page
 
+Quote Post
thescientist
post Nov 6 2009, 02:34 PM
Post #15


Likes gettin' it on!
***

Group: Members
Posts: 643
Joined: 24-May 08
From: Rhode Island, USA
Member No.: 22,266
Languages: (X)HTML, CSS, Javascript, PHP/MySQL, XML, Java (still gettin a grip on those last couple)



what's your code up to now?
Go to the top of the page
 
+Quote Post
Synook
post Nov 7 2009, 10:57 AM
Post #16


53 79 6E 6F 6F 6B 0D 0A
*****

Group: Members
Posts: 4,750
Joined: 14-July 07
From: Australia
Member No.: 15,617
Languages: (X)(HT)ML, CSS, PHP, SQL, JavaScript, Java (a bit)



QUOTE
I don't know what Webkit is, i tried to download the program (i have windows vista) but it gave me an error when I started FindSafari.exe

Webkit is the rendering engine used by Safari, Chrome, Konqueror (sort of) and some mobile browsers. It uses a implementation method distinct from Firefox's Gecko, IE Trident, and Opera's Presto engines to figure out how to render pages, and as a result you can sometimes (or often) get differing results for the different browsers... even though they all follow the same standards!

Unless you want to make your own browser, you probably want to download Safari or Chrome, rather than the engine itself.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd November 2009 - 04:23 AM