473,834 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Center content / table under Safari (mac) and Konqueror (Linux) without using frames

Hello fellows,

i would like to center a 800px wide 600px high content area
without using frames. I have "come up" with the following
solution so far. It works under IE 6.0, Firefox 1 (under Windows
and Linux) but not under Konqueror (could not test Safari, but
they have the rendering engine in common (see www.kde.org)):

<pre>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN" >
<HTML>
<HEAD>
<title>noFram e</title>
<LINK href="../styles/style.css" type=text/css
rel=stylesheet >
</HEAD>
<body >
<form id=Form1 method=post runat="server">
<table width="100%" height="100%" border="1">
<tr>
<td width="*" height="*">&nbs p;</td>
<td width="800" height="*">&nbs p;</td>
<td width="*">&nbsp ;</td>
</tr>
<tr>
<td width="*">&nbsp ;</td>
<td width="800">
<table id="contentTabl e" width="800"
bgColor="#fffff f" border="1">
<tr id="navRow">
<td colspan="2"><uc 1:navigation
id=Navigation1 runat="server"> </uc1:navigation> </td>
</tr>
<tr id="contentRow" >
<td valign="bottom"
height="380"><u c1:lcontent id=Lcontent1 runat="server">
</uc1:lcontent></td>
<td valign="bottom" >
<uc1:rcontent id=Rcontent1 runat="server">
</uc1:rcontent></td>
</tr>
<tr id="footerRow" >
<td colspan="2" id="footerCell" >
<img width=1 src="../1px.gif"></td>
</tr>
</table>
</td>
<td width="*">&nbsp ;</td>
</tr>
<tr>
<td width="*" height="*">&nbs p;</td>
<td height="*">&nbs p;</td>
<td width="*">&nbsp ;</td>
</tr>
</table>
</form>
</body>
</HTML>

</pre>
As mentioned the above already works under IE 6, Firfox 1.0. But
i really need it under Mac OS X Safari.
I am open for any solution that is less deprecated and works
under IE 5.0, 5.5 6.0 and Firefox and Safari.

Here is the css code:

body, div, table, td, select, input,textarea { color: #
221b5e; font-size: 10px; font-family: Arial, Helvetica,
sans-serif }
body {
background-color: #FFFFFF;
margin: 0 0;
padding: 0px;
}

/* body { background: white url(../hintergrund.jpg ) no-
repeat fixed } */
/* #contentTable td { vertical-align: top; } */
td {margin: 0; padding: 0}
#topRow { height: 10px;}
#navRow { height: 40px; vertical-align: top; margin: 0;
padding: 0}
#firstNav img { border: none;}

#lcontent{ width: 150px; vertical-align: bottom;}
#rcontent{ width: 450px; /* vertical-align: bottom; */}
#footerRow{}

#footerCell
{ height: 45px;
background-image: url(../img/footer.gif);
background-repeat: no-repeat;
vertical-align: text-top;
}

.nav1px{ border: none; height: 19px; width: 30px;}
.nav200px{ border: none; height: 19px; width: 205px;}
.nav2px{ border: none; height: 19px; width: 10px;}
.navImg{ border: none; height: 19px; width: 46px; }
.topBlank { border: none; height: 1px; width: 1px;}

Thanks i lot.
Regards

----------------------------------------------
Posted with NewsLeecher v2.1 Beta 2
* Binary Usenet Leeching Made Easy
* http://www.newsleecher.com/?usenet
----------------------------------------------

Jul 21 '05 #1
1 3387
du******@hogwat ch.com wrote:
Hello fellows,
Hello. (There are some gals here, too...)
i would like to center a 800px wide 600px high content area without
using frames. I have "come up" with the following solution so far.
It works under IE 6.0, Firefox 1 (under Windows and Linux) but not
under Konqueror (could not test Safari, but they have the rendering
engine in common (see www.kde.org)):
Please post this page somewhere, and validate it first. I see numerous
errors in the code, including most obviously, the <pre> and </pre>
wrapped around the whole page.

http://validator.w3.org/
http://jigsaw.w3.org/css-validator/validator-uri.html

* Binary Usenet Leeching Made Easy *


Heh.

--
-bts
-This space intentionally left blank.
Jul 21 '05 #2

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

Similar topics

14
5785
by: DU | last post by:
According to a recent post, it seems that Konqueror 3.1+ and Safari 1.1 support CSS3 opacity style property under a proprietary name: "Support for the CSS3 opacity (using -khtml-opacity) property. Make entire blocks and inlines transparent without resorting to transparent PNGs." http://weblogs.mozillazine.org/hyatt/archives/2003_10.html#004249 Now, I have a demo page which works for MSIE 6 for Windows and Mozilla-based browsers but...
27
9264
by: FL | last post by:
Hi Everyone, I know howto center a block using margin-left: auto ; margin-right: auto ; but I'm trying to center vertically a box, any idea to solve this?
4
4073
by: Els | last post by:
Hi all, Whilst testing other things on www.browsercam.com, I found that some pages with absolute positioned pictures were all messed up in Mac's Opera 6.0 and even worse on Safari 1.0, and worse again on Linux' Konqueror 3.0.5. I've collected some of the views on http://www.browsercam.com/public.aspx?proj_id=43251 Where for each of the 3 pages I selected, you can see the
1
3272
by: Joe Kraft | last post by:
I'm hoping that someone can help me out before I lose what color I have left in my hair. I'm developing a website that relies on quite a bit of remote scripting (see code below) so I can process things without reloading the page. Anyway, everything works fine on IE and Netscape for both the Mac and PC, and I do get the right results in Safari for the Mac (ie, the item is added to the basket) but it also opens the download manager window...
7
3250
by: Alex | last post by:
Hi Everone, I need some advice on how to setup 4 columns where the outside two are absolute (120px) and the inner two (side by side) are relevent (Fluid) and change with the screen. Here's my rough layout:
6
23141
by: jennyw | last post by:
Hi, I'd like to use onbeforeunload to submit a form before leaving a page. This works in Firefox and IE. Safari, however, blithely ignores this. Does anyone know of a workaround for Safari? Or another way to do the same thing in Safari? (that is, intercept a request to leave the page). I tried Safari 2.02 on Tiger. Thanks!
4
1488
by: yavannadil | last post by:
Hello! I use the following to translate button names in Google Maps: G_NORMAL_MAP.getName = function(short) { if(short) {return "Karta"} return "Karta"; } It works (tested) with Firefox 1.5 (Linux and Mac) and Opera 9 (Mac).
1
1574
by: gubusoft | last post by:
I have a Web page with two frames. The left frame has a DHTML-generated tree of links (to images). The right frame displays the image link you click in the tree of links. It works great on all browsers except Konqueror/Safari, where it displays the first image link you click on in the tree of links. But then subsequent clicks on other links do nothing. That is, the first time you click on a DHTML-generated link,
0
9651
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10802
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10516
jinu1996
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...
1
10557
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,...
0
10225
tracyyun
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...
1
7763
isladogs
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...
0
5630
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5802
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3987
muto222
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.