473,666 Members | 2,331 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Making Table In Very Top Left Corner

Hi

I want to make my header table (with the logo and nav menu) start at
0,0. I tried

body {margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
margin-left: 0px; padding:0px;}

but I still have about a 3-5px border the color of my page background
when viewed in both IE and FF. How can I make it have NO border at
all? I've seen a ton of sites that achieve this look.

Thanks in advance

Aug 22 '06 #1
14 3719
Els
du*****@gmail.c om wrote:
Hi

I want to make my header table (with the logo and nav menu) start at
0,0. I tried

body {margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
margin-left: 0px; padding:0px;}
Did you set margin and padding to 0 for the <htmlelement?

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/

Now playing: Annie Lennox - Why
Aug 22 '06 #2
Els wrote:
du*****@gmail.c om wrote:
>I want to make my header table (with the logo and nav menu) start at
0,0. I tried

body {margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
margin-left: 0px; padding:0px;}

Did you set margin and padding to 0 for the <htmlelement?
...or maybe even for the <tableelement ? :-)

[Begs the question: why is dutch using a <tablefor non-tabular data?]

BTW, this is more efficient:

html, body, table { margin: 0; padding: 0; }

--
-bts
-Motorcycles defy gravity; cars just suck.
Aug 22 '06 #3

Beauregard T. Shagnasty wrote:
Els wrote:
du*****@gmail.c om wrote:
I want to make my header table (with the logo and nav menu) start at
0,0. I tried

body {margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
margin-left: 0px; padding:0px;}
Did you set margin and padding to 0 for the <htmlelement?

..or maybe even for the <tableelement ? :-)

[Begs the question: why is dutch using a <tablefor non-tabular data?]

BTW, this is more efficient:

html, body, table { margin: 0; padding: 0; }

--
-bts
-Motorcycles defy gravity; cars just suck.
None of those solutions work. While they do bring the content closer
to the top left corner, there are still a few pixels between the edge
and the graphic.

How should I do my layout if not with tables?

Aug 23 '06 #4
du*****@gmail.c om wrote:
Beauregard T. Shagnasty wrote:
>Els wrote:
>>du*****@gmail.c om wrote:

I want to make my header table (with the logo and nav menu) start
at 0,0. I tried

body {margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
margin-left: 0px; padding:0px;}

Did you set margin and padding to 0 for the <htmlelement?

..or maybe even for the <tableelement ? :-)

[Begs the question: why is dutch using a <tablefor non-tabular
data?]

BTW, this is more efficient:

html, body, table { margin: 0; padding: 0; }

None of those solutions work. While they do bring the content closer
to the top left corner, there are still a few pixels between the edge
and the graphic.
Ok, time for you to post a URL with a valid test case.
How should I do my layout if not with tables?
Use CSS. Jump into the 21st century.

I don't have any pages with logos stuffed at the corner, but here are a
couple sites of mine where tables are only used for real tabular data.

http://countryrode.com/
http://freezeblock.com/

--
-bts
-Motorcycles defy gravity; cars just suck.
Aug 23 '06 #5

Beauregard T. Shagnasty wrote:
Ok, time for you to post a URL with a valid test case.
At the moment, it's only available on my local machine. I'll upload it
sometime tomorrow -- it's late now.

What are the advantages of using CSS for layout? Seems like it'd be
MUCH harder to design the pages if you use CSS for your basic layout.

Aug 23 '06 #6
du*****@gmail.c om wrote:
Beauregard T. Shagnasty wrote:
>Ok, time for you to post a URL with a valid test case.

At the moment, it's only available on my local machine. I'll upload
it sometime tomorrow -- it's late now.
Ok. Let us know when it's ready.
What are the advantages of using CSS for layout? Seems like it'd be
MUCH harder to design the pages if you use CSS for your basic layout.
It is MUCH easier once you grasp the concept of CSS.

Here are some templates that I like:
<http://benmeadowcroft. com/webdev/csstemplates/3-column.html>

--
-bts
-Motorcycles defy gravity; cars just suck.
Aug 23 '06 #7
RC
du*****@gmail.c om wrote:
>
body {margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
margin-left: 0px; padding:0px;}

but I still have about a 3-5px border the color of my page background
when viewed in both IE and FF. How can I make it have NO border at
all? I've seen a ton of sites that achieve this look.
{ margin: 0; padding: 0; border-spacing: 0; border-width: 0;
border-style: solid; border-color: yourchoice; }

These are apply to box tags such table, th, td, tbody, H1 to H6, etc.
Aug 23 '06 #8
RC wrote on 23 aug 2006 in comp.infosystem s.www.authoring.stylesheets:
{ margin: 0; padding: 0; border-spacing: 0; border-width: 0;
border-style: solid; border-color: yourchoice; }
if the border-width is 0, the color and style unnecessarily specified.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Aug 23 '06 #9
On 22 Aug 2006 20:11:43 -0700, du*****@gmail.c om wrote:
>
Beauregard T. Shagnasty wrote:
>Els wrote:
du*****@gmail.c om wrote:

I want to make my header table (with the logo and nav menu) start at
0,0. I tried

body {margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
margin-left: 0px; padding:0px;}

Did you set margin and padding to 0 for the <htmlelement?

..or maybe even for the <tableelement ? :-)

[Begs the question: why is dutch using a <tablefor non-tabular data?]

BTW, this is more efficient:

html, body, table { margin: 0; padding: 0; }

--
-bts
-Motorcycles defy gravity; cars just suck.

None of those solutions work. While they do bring the content closer
to the top left corner, there are still a few pixels between the edge
and the graphic.
I start every table I use like this:

<TABLE CellSpacing=0 CellPadding=0>

I've found it avoids the kind of problem you mention. If I want to add white
space, colors or other formatting, I do that later with CSS.
Aug 24 '06 #10

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

Similar topics

4
7312
by: Gregory | last post by:
Hello, I've managed to build two web pages, one that can display images with associated text data in a table, and one that can resize and display images without the text. I'd like to resize the images as I go, without writing them to disk on the server. Do I need to prepare all of the resized images before I display the data from the select (which is put into an array by php). How can I display a resized image in a table, without writing...
22
9923
by: Bernard Fields | last post by:
Greets, all. As the title suggests, I'm trying to make a maze. Specifically, it's a top-down, 2-d maze, preferably randomly generated, though I'm willing to forego that particular aspect as this point. I've done many, many web-searches, but nothing that I've found so far has provided any clues....
8
3309
by: max junker | last post by:
hello, i have a table, that serves as a navigation box in the upper left corner of my page. i aligned this table with <table align="left">. right to it i have a heading and some text. but sometimes there is no text. in this case, the following table is positioned right to the navigation table, which looks very confusing. now i'm looking for a way to have the second table positioned below the navigation, if there is text above or not.
10
26869
by: john T | last post by:
Is there anyway to vertically center a html table using css in such a way it does not alter the html table. When I tryied it just screws up.
9
5689
by: Dean Ware | last post by:
I am trying to construct a model for use in a video game Basically I have boiled things down to the following situation that needs to be modelled:
19
6766
by: Christian Fowler | last post by:
I have a VERY LARGE pile of geographic data that I am importing into a database (db of choice is postgres, though may hop to oracle if necessary). The data is strictly hierarchical - each node has one, and only one parent. The depth should not exceed 6 or 7 levels. The initial import will have about 6 million leaves, and 3 million branches. I would expect the leaves to grow significantly, in number easily tripling. However, the branches will...
1
1761
by: Andrew Gillett | last post by:
I have made a mock up for a web application that requires the use of tabbed panels. I've looked at some good examples of how to implement the tab bar (e.g. sliding doors on a list apart), but I have a requirement to include an icon on each tab, "to make it look snazzy". So I have tried to roll my own. I've got the screen looking pretty much the way I want (see http://asgillett.googlepages.com/app.html), but a problem occurs when an IE6...
0
1806
by: RubbedLung | last post by:
http://www.hometeamproperties.net/Forms/PVA/LPV.htm As you can see its a valid page but now the bottom right rounded corner is gone, and there are entire blocks of color missing from the interior of the table. Anyone have any ideas? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta...
5
1980
by: agarwasa2008 | last post by:
Hi, I have a linked table called tbltest and some bounded forms (which add, update, delete records) that were created using that linked table. For some necessary reasons I had to create another linked table called tblComponents and then I bounded the original forms to this new table. I did change the control source: Description (Field name) RowSource Type: Table/Query (which remains the same)
0
8443
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8866
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
8781
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
8550
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
8639
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...
0
5663
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
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
4366
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1772
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.