
|
View Full Version : <DIV> problem
acidhoss 12-25-2003, 11:58 PM Hey all,
I just redid my site http://dhoss.perlmonk.org/ethereal
using CSS and divs, and everything looks good for the most part in Internet Explorer, but when I view it in Netscape, the divs are cluttered until I resize the window. Now, being the inexperienced CSS coder that I am, I am clueless as to why this would be. If you need a style sheet or what now, please let me know.
-hoss
epolady 12-26-2003, 12:31 AM They both look the same to me in both Ie6 and Firebird 0.7.
acidhoss 12-26-2003, 12:40 AM Really? Hmmmm, did you try opening the page, then resizing it? I found problems when I did that...
epolady 12-26-2003, 12:47 AM Well, when I resize the window, everything pretty much comes together, since there's so limited space, is it not supposed to do that?
acidhoss 12-26-2003, 12:49 AM Ehhh.....I would like it to "get it right", so to say, so that the window doesn't have to be resized for it to fit and what not, do you know what I mean?
RacingCatche 12-26-2003, 09:37 AM Add a Javascript called NS Resize Fix.
acidhoss 12-26-2003, 07:54 PM Could you elaborate please? What will I need in this javascript, or is it something I download?
I could be wrong here, but I think you might want to put your entire site into one table with a fixed width. That way it prevents tables inside from stretching across the screen.
RMF
acidhoss 12-28-2003, 11:06 PM Tables aren't reccommended by the W3C...it's standard to use Divs/css to position everything on your site because you can put it exactly where you want it.
What are you talking about?. Tables aren't recommended?. 99% of websites have tables in their website!. You can control your tables if you use fix positions, not percentages.
RMF
acidhoss 12-28-2003, 11:25 PM Right, but if you read any W3C HTML doc it will say use divs over tables. It's much faster, and much more reliable.
I don't think you quite understand. Use div tags to align (left, right, center) your table.
RMF
acidhoss 12-30-2003, 03:41 PM Uh...may bad. I got it and thanks, sorry about the mix up.
RacingCatche 12-30-2003, 08:14 PM Add the following Javascript to the header. I think this should work. I got this from Dreamweaver, they have an NS4 Resize fix. Keep for future if you have this problem again.
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
//-->
</script>
RacingCatche 12-30-2003, 08:27 PM Sorry I took so long to answer....just to answer your question above, there are few NS4 fixes around the internet.
CSS with no tables is the way to go.... Very sweet.
|