LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   how was the 1 pixel wide border created...? (https://www.linuxquestions.org/questions/general-10/how-was-the-1-pixel-wide-border-created-130534/)

GraemeK 01-01-2004 08:44 AM

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

trickykid 01-01-2004 10:57 AM

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. ;)

GraemeK 01-01-2004 11:45 AM

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

trickykid 01-01-2004 12:01 PM

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.

GraemeK 01-01-2004 12:05 PM

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

trickykid 01-01-2004 12:09 PM

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.

GraemeK 01-01-2004 12:14 PM

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

trickykid 01-01-2004 12:17 PM

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.

GraemeK 01-01-2004 12:20 PM

oops! sorry!

cheers

glyph 01-01-2004 12:56 PM

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.

GraemeK 01-01-2004 01:01 PM

cheers, i'll check it out :D

glyph 01-01-2004 01:41 PM

i've been working alot on my page lately, i've been using tables and single pixel borders throughout. check it out:
rock consciousness

GraemeK 01-01-2004 02:03 PM

looking good

Artimus 01-02-2004 11:46 AM

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

GraemeK 01-02-2004 06:48 PM

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


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