LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 01-01-2004, 08:44 AM   #1
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Rep: Reputation: 30
how was the 1 pixel wide border created...?


i was looking at this site which my uncle owns and see the 1 pixel wide border around the site...

anyone know how this is done? looks like cells and tables on cells? in dreamweaver it wont allow me to draw a table on top of a cell?

any ideas...this is the site
 
Old 01-01-2004, 10:57 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
That line appears to be part of an image that's why. Looking at the code an also noticing the big round edges in which html can't do on its own.
 
Old 01-01-2004, 11:45 AM   #3
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Original Poster
Rep: Reputation: 30
ya i see the curves and knew they were images but the lines at the sides appear to be some code?

also looking at the page in dreamweaver she's put tables on top of cells?

how ya do that!!!?

thanks
 
Old 01-01-2004, 12:01 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by GraemeK
ya i see the curves and knew they were images but the lines at the sides appear to be some code?

also looking at the page in dreamweaver she's put tables on top of cells?

how ya do that!!!?

thanks
Well, you can place tables within other tables and their cells, etc with just the <table> tags. Basic HTML and such.

But no, the lines on the sides are an image cause when I even view the page in Firebird, it seems she messed up and I can see its placed as a background image for that table to display and I can see part of the line underneath the bottom portion after it curves.

Regards.
 
Old 01-01-2004, 12:05 PM   #5
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Original Poster
Rep: Reputation: 30
hmmmm ok. well i know you can put tables in tables and cells in tables but it looks like she's put tables in cells...

when i stretch out the cells on the left and right there isnt an image? maybe i'm getting confused here! also yeah i use Mozilla and i see the lines underneath the curves too...

G
 
Old 01-01-2004, 12:09 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by GraemeK
hmmmm ok. well i know you can put tables in tables and cells in tables but it looks like she's put tables in cells...
Yes, you can put tables within cells as well to create a smaller table within it, etc.

Check out this link: http://www.flyscreenqueen.com/images/fsq_r2_c1.jpg which is the image used for the background of that table, in which you can see at the bottom as she most likely didn't create a height size for the bottom row so its set at the specified height of the bottom image only, etc.
 
Old 01-01-2004, 12:14 PM   #7
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Original Poster
Rep: Reputation: 30
ok so the code specifies the use of that image the whole way through the document...?

do you know how i can add tables on top of cells in dreamweaver mx?

cheers
 
Old 01-01-2004, 12:17 PM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by GraemeK
ok so the code specifies the use of that image the whole way through the document...?

do you know how i can add tables on top of cells in dreamweaver mx?

cheers
Yes, setting the background image for a particular table will display for the whole table unless you have another table within that table which has its own background, etc.

Dreamweaver might not let you by default or err, try placing your cursor in the cell, then create the table or hand edit to add it, its that easy most likely.

And you have your terminology backwards, its not a table on top of a cell, its a table within a cell.

Regards.
 
Old 01-01-2004, 12:20 PM   #9
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Original Poster
Rep: Reputation: 30
oops! sorry!

cheers
 
Old 01-01-2004, 12:56 PM   #10
glyph
Member
 
Registered: Feb 2003
Location: Chugiak, Alaska
Distribution: Mac OS X Panther SuSE 9.0 pro
Posts: 61

Rep: Reputation: 15
i would use style sheets. with them you can specify borders for top,right,bottom, left. also, you can specify whether the border is solid, dashed, double, ect.

the easiest way is with a in-line style. example:

<td style="border-top:0px;border-right:1px;border-bottom:1px;border-left:1px" align="....

here's one with a 1px red dashed line:

<td style="border: dashed thin #f00" align=.....

since i wasn't specific with the border style , (top,right...) the border properties apply to all sides.

with css you can apply styles to just about any html tag, so whether it's a paragraph, image, div, you can have a lot more control how your page looks.

you can learn more about css here.
it's really easy and it only takes a little time to learn it.

Last edited by glyph; 01-01-2004 at 01:10 PM.
 
Old 01-01-2004, 01:01 PM   #11
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Original Poster
Rep: Reputation: 30
cheers, i'll check it out
 
Old 01-01-2004, 01:41 PM   #12
glyph
Member
 
Registered: Feb 2003
Location: Chugiak, Alaska
Distribution: Mac OS X Panther SuSE 9.0 pro
Posts: 61

Rep: Reputation: 15
i've been working alot on my page lately, i've been using tables and single pixel borders throughout. check it out:
rock consciousness
 
Old 01-01-2004, 02:03 PM   #13
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Original Poster
Rep: Reputation: 30
looking good
 
Old 01-02-2004, 11:46 AM   #14
Artimus
Member
 
Registered: Feb 2003
Location: Wisconsin
Distribution: Slackware
Posts: 188

Rep: Reputation: 30
Excuse me if this has been posted, but

Make TableA. Then create TableB inside of TableA. Set TableA to have a border of zero and a cell padding of 1...
 
Old 01-02-2004, 06:48 PM   #15
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Original Poster
Rep: Reputation: 30
thats great if ya want a border the whole way around........i only wanted the border at the sides.....at the top and bottom would be the image with curved corners

G
 
  


Reply



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

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
pixel pipelines? tnelson42345 Linux - Hardware 1 11-12-2005 12:25 PM
Question(s) about bits per pixel kornerr Linux - General 4 08-21-2005 02:06 AM
Pixel Stretching, and panning shamgar03 Linux - Laptop and Netbook 10 06-23-2005 12:13 AM
Drawing 24 bit pixel with SDL Tafta Programming 0 02-23-2004 11:27 AM
matroxfb: Pixel PLL not locked after 5 secs Avancer Linux - Software 0 10-07-2003 12:04 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 10:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration