HighDots Forums  

Making Table In Very Top Left Corner

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Making Table In Very Top Left Corner in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dutch90@gmail.com
 
Posts: n/a

Default Making Table In Very Top Left Corner - 08-22-2006 , 05:14 PM






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


Reply With Quote
  #2  
Old   
dutch90@gmail.com
 
Posts: n/a

Default Re: Making Table In Very Top Left Corner - 08-23-2006 , 02:39 AM







Beauregard T. Shagnasty wrote:

Quote:
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.



Reply With Quote
  #3  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Making Table In Very Top Left Corner - 08-23-2006 , 09:08 AM



dutch90 (AT) gmail (DOT) com wrote:

Quote:
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.

Quote:
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.


Reply With Quote
  #4  
Old   
RC
 
Posts: n/a

Default Re: Making Table In Very Top Left Corner - 08-23-2006 , 04:21 PM



dutch90 (AT) gmail (DOT) com wrote:

Quote:
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.


Reply With Quote
  #5  
Old   
Evertjan.
 
Posts: n/a

Default Re: Making Table In Very Top Left Corner - 08-23-2006 , 04:39 PM



RC wrote on 23 aug 2006 in comp.infosystems.www.authoring.stylesheets:

Quote:
{ 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)


Reply With Quote
  #6  
Old   
dutch90@gmail.com
 
Posts: n/a

Default Re: Making Table In Very Top Left Corner - 08-26-2006 , 06:07 PM




Christopher P. Winter wrote:

Quote:
I start every table I use like this:

TABLE CellSpacing=0 CellPadding=0

Actually, I'm going to do a CSS layout now.



Reply With Quote
  #7  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Making Table In Very Top Left Corner - 08-26-2006 , 07:18 PM



dutch90 (AT) gmail (DOT) com wrote:

Quote:
I was expecting it to wrap after the length reached 150 pixels. No
such luck. What gives? This destroys the layout...
Your unbroken string would do the same in a table cell. That wasn't a
good test. Use real words.

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


Reply With Quote
  #8  
Old   
dutch90@gmail.com
 
Posts: n/a

Default Re: Making Table In Very Top Left Corner - 08-26-2006 , 08:16 PM




Beauregard T. Shagnasty wrote:

Quote:
Your unbroken string would do the same in a table cell. That wasn't a
good test. Use real words.
Hmmm. Guess you're right.

Sorry -- I'm new to CSS. I guess there is where overflow: hidden comes
in handy.



Reply With Quote
  #9  
Old   
dutch90@gmail.com
 
Posts: n/a

Default Re: Making Table In Very Top Left Corner - 08-27-2006 , 02:18 AM



dutch90 (AT) gmail (DOT) com wrote:
Quote:
Actually, I'm going to do a CSS layout now.
*Sigh*. More problems. I'm trying to put together a simple login box
(something similar to
https://www.google.com/accounts/Login?continue=http://www.google.com/&hl=en).
I want the boxes for username and password to be flush along the left
side. "No problem", I say. "I'll use absolute positioning!".

So I try this code:

..loginField {
position: absolute;
left: 80px;
}

and I make both text fields class="loginField". This seems to work,
except now the bottom of my password box spills out over the
"border-style: solid;" of my div.login box.

"No problem", I say. "I'll use the width and heigh properties!".

So I get it looking quite nice. Keep in mind I use firefox. I load it
up in IE and it looks terrible. How can I accomplish this effect
without tables in both IE and FF?? If it works in one, it doesn't work
in the other. I wish windows would ship with FF instead of IE.

CSS (no, wait, internet explorer) makes a fool of me again :P



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.