473,549 Members | 2,273 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 3371
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
5758
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."...
27
9210
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
4054
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...
1
3258
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...
7
3230
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
23070
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
1480
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
1563
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...
0
7472
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...
0
7743
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. ...
0
7986
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...
0
7832
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...
0
6074
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5391
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...
0
5114
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3518
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...
0
786
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.