|
|
#1 |
|
wwwyzzerdd
(Forum King) Join Date: May 2003
Posts: 3,458
|
very very very simple html question
I've noticed since my transition to firefox, I cant get the "3d" look to my borders (and my bordercolors) on simple html tables to go away and leave a solid line.
<table border=1 bordercolor=#000000 cellpadding=0 cellspacing=0> doesnt seem to do it. Anyone know how to just get a solid line? (and I dont want a bunch of people yelling "Dont use tables!". I am not interested in switching right now) |
|
|
|
|
|
#2 |
|
Just Strolling By
(Major Dude) Join Date: Aug 2002
Location: A Long Winding Road.....
Posts: 3,259
|
DON'T USE TABLES!!
lol ![]() em dunno mnths since I used that and as I use css now I use this; code: That gives me control of the borders in one of my nav structures. simple to use - I have the size of the border = 1px the color and what style I want solid or dotted btw looking at your code above - you need to add " " to every thing- like so; code: allways use lower case and allways use the speech markers - then you can possibly make an easy transition to xhtml - and get rid of those damn tables! ![]() ~ ![]() ps. I'll see if I can find the code for you and post back - but I haven't used it in mnths so I could have it anywhere - I'll see what I can do - unless someone posts before then of course
Music is Life, Love and Happiness :|: Life is Music. Serren - 1985 - 2005 Religion? Religion is a Blasphemy against humanity - From the film What the Bleep do we know siggy link So stumbling? whats it all about |
|
|
|
|
|
#3 |
|
wwwyzzerdd
(Forum King) Join Date: May 2003
Posts: 3,458
|
Yea, I'll probably just use css (because I can get a thinner border with it also).
Thanks ![]() Edit: Ah crap, I cant because I have a table I want to have no border on the same page. Is there anyway I can get this to specific tables only? |
|
|
|
|
|
#4 |
|
Just Strolling By
(Major Dude) Join Date: Aug 2002
Location: A Long Winding Road.....
Posts: 3,259
|
id it
code: then use this in your meta tags code: you then create a .txt rename it to say test.css and in there put the border code. now it identifies one of two ways either via the hash symbol '#' or via a full stop like so code: If I remember right for class you use the full stop. As I use the simpler hash - I would identify the table this way; code: That should work.. If you get used to using it you can move all of the attributes to the css document. I have some simple templates in xhtml/css that you can look at and play with to get the hang of it if you want? pm me for details as to where to get them ![]() ~ ![]() edit: btw take a look at these. This shows the power of css and xhtml divs. All three of these are the same template. I just adjusted to add a page cell to two and the rest is done in css One Two Three Thats why I made the change - simple templates yes, and I can do what I like to them from there..
Music is Life, Love and Happiness :|: Life is Music. Serren - 1985 - 2005 Religion? Religion is a Blasphemy against humanity - From the film What the Bleep do we know siggy link So stumbling? whats it all about |
|
|
|
|
|
#5 |
|
wwwyzzerdd
(Forum King) Join Date: May 2003
Posts: 3,458
|
Ah, I didnt know the proporty that holds the tables identifier (I tried "name = 'blah'" but it didnt work for obvious reasons).
Thanks, I'll go try it out. Edit: is there a way to do this all within my html? I dont want to link to another css file (as I've never ever used them and am somewhat pressed for time). |
|
|
|
|
|
#6 |
|
Just Strolling By
(Major Dude) Join Date: Aug 2002
Location: A Long Winding Road.....
Posts: 3,259
|
Yeah you can use it in-line but I'm not sure how to seperate them so it won't affect the other table - I'd allready changed over and never really used css in-line so sorry can't really help you there ..
![]() wonders where Griffin is he'd know ![]() ~ ![]() btw have a look at the three samples above
Music is Life, Love and Happiness :|: Life is Music. Serren - 1985 - 2005 Religion? Religion is a Blasphemy against humanity - From the film What the Bleep do we know siggy link So stumbling? whats it all about |
|
|
|
|
|
#7 |
|
Forum King
Join Date: Mar 2001
Location: Where Hell Froze Over
Posts: 2,466
|
<style>
#identifier { css code } or via .identifier { css code } </style> and put that between the head tags Software is like sex: It's better when it's free.-*-If at first you don't succeed; call it version 1.0-*-Guess the band from pics game |
|
|
|
|
|
#8 |
|
Major Dude
|
code: /too late though Words are very unnecessary, they can only do harm, so enjoy the silence - Depeche Mode Firemonger Project: Help spread Firefox |
|
|
|
|
|
#9 | |
|
wwwyzzerdd
(Forum King) Join Date: May 2003
Posts: 3,458
|
Quote:
Thanks guys
|
|
|
|
|
|
|
#10 |
|
Forum King
Join Date: Mar 2001
Location: Where Hell Froze Over
Posts: 2,466
|
haha, yeah that would do it
Software is like sex: It's better when it's free.-*-If at first you don't succeed; call it version 1.0-*-Guess the band from pics game |
|
|
|
|
|
#11 |
|
not fucked, not quite.
(Forum King) |
Using a # before the identifer lets you use it via the id attribute. IDs are unique, you can only use them once per document
Using a . before the identifier lets you use it via the class attribute. Classes can be used as many times as you want per document. And I still say going with a more semantic div based layout is a lot easier (and easier to manage) than using tables to layout your page. |
|
|
|
|
|
#12 |
|
wwwyzzerdd
(Forum King) Join Date: May 2003
Posts: 3,458
|
Ok, new question:
I have three tds in my table, but when I use border-top: 2px #9F9F9F solid; border-bottom: 2px #9F9F9F solid; border-right: 2px #9F9F9F solid; border-left: 2px #9F9F9F solid; This only outlines the outside borders. How would I show the td border? |
|
|
|
|
|
#13 |
|
Just Strolling By
(Major Dude) Join Date: Aug 2002
Location: A Long Winding Road.....
Posts: 3,259
|
got a link to the document/page?
Music is Life, Love and Happiness :|: Life is Music. Serren - 1985 - 2005 Religion? Religion is a Blasphemy against humanity - From the film What the Bleep do we know siggy link So stumbling? whats it all about |
|
|
|
|
|
#14 |
|
wwwyzzerdd
(Forum King) Join Date: May 2003
Posts: 3,458
|
I just started it today, so there's not much code. here's what it looks like (remember It's all empty with placeholders and such):
================================================ <html> <head> <meta link rel="stylesheet" type="text/css" href="name of the css.css" /> <style type=text/css> <!-- <!--table { font-family: Tahoma; font-size: 12px; font-style: Normal; color: #ffffff; } #table-inside { border-top: 2px #9F9F9F solid; border-bottom: 2px #9F9F9F solid; border-right: 2px #9F9F9F solid; border-left: 2px #9F9F9F solid; } <!-- <!--A { text-decoration:none }--> <!--A:link {text-decoration: none; color: #FFFFFF}-----> <!--A:link {font-family: tahoma; font-size: 11pt;} <!--A:visited {text-decoration: none; color: #8A8A8A; }-----> <!--A:visited {font-family: tahoma; font-size: 11pt;}-----> <!--A:hover {text-decoration: None; color: #8A8A8A}--> ------!>#FF0000 </style> </head> <body bgcolor=#D3D3D3 Topmargin=0 bottom Margin=0 bottomMargin=0 leftmargin=0 rightMargin=0> <table cellpadding=0 cellspacing=0 bgcolor=#D3D3D3 width=100% height=100%> <tr> <td> <center> <table id="table-inside" border=0 cellspacing=0 cellpadding=0 width=500 height=160> <tr> <td> asd </td> <td> asd </td> <td> asd </td> </tr> </table> </center> </td> </tr> </table> </body> </html> |
|
|
|
|
|
#15 | |
|
Just Strolling By
(Major Dude) Join Date: Aug 2002
Location: A Long Winding Road.....
Posts: 3,259
|
Quote:
(thanks for reminding me on that one ryan )
Music is Life, Love and Happiness :|: Life is Music. Serren - 1985 - 2005 Religion? Religion is a Blasphemy against humanity - From the film What the Bleep do we know siggy link So stumbling? whats it all about |
|
|
|
|
|
|
#16 | |
|
Major Dude
|
Quote:
Words are very unnecessary, they can only do harm, so enjoy the silence - Depeche Mode Firemonger Project: Help spread Firefox |
|
|
|
|
|
|
#17 |
|
wwwyzzerdd
(Forum King) Join Date: May 2003
Posts: 3,458
|
I actually am considering learning how to use divs. Looks and sounds like it'l save me some time and stress.
Got any good resource for learning how to use divs? |
|
|
|
|
|
#18 | |
|
wwwyzzerdd
(Forum King) Join Date: May 2003
Posts: 3,458
|
Quote:
|
|
|
|
|
|
|
#19 |
|
Just Strolling By
(Major Dude) Join Date: Aug 2002
Location: A Long Winding Road.....
Posts: 3,259
|
ok looking at that you can't use two types of css to attribute the same table. you either use inline style tags or you link via the css/text link I gave you. (btw - drop the 'forward slash' at the end if your using html 4.01.
heres how I would write what you have above then code: I would also then uniquely identify the divs so I can position them where I want on the page/document either Absolute or relevant. notice I have changed the table idetifier to 'class' from the 'id' identifier. ~ ![]() edit: ah if I remember right you don't need to use hash or fullstop with tr or td only code: you have to be careful with that though as it will attribute it to all td's and tr's. I'm sure you can use code: but don't quote me on it as I never used it and jumped straight to divs without tables. As you can see by those three examples I popped in above I have a pagecell in two of those designs. before those would have been done with a table. Now I just use div=pagecell and the rest is done in the css. I have this in those templates I mentioned I think - but the best resrc I know of is zen garden or W3C
Music is Life, Love and Happiness :|: Life is Music. Serren - 1985 - 2005 Religion? Religion is a Blasphemy against humanity - From the film What the Bleep do we know siggy link So stumbling? whats it all about |
|
|
|
|
|
#20 |
|
wwwyzzerdd
(Forum King) Join Date: May 2003
Posts: 3,458
|
what exactly are divs (how do they work)?
|
|
|
|
|
|
#21 |
|
Major Dude
|
code: It does something
Words are very unnecessary, they can only do harm, so enjoy the silence - Depeche Mode Firemonger Project: Help spread Firefox |
|
|
|
|
|
#22 |
|
wwwyzzerdd
(Forum King) Join Date: May 2003
Posts: 3,458
|
...strange; I just gave it another try and this time it worked
![]() Thanks for the help
|
|
|
|
|
|
#23 |
|
Forum King
Join Date: Jun 2003
Location: Milwaukee
Posts: 4,577
|
you can also do:
code: if you wanted to apply a style to every td in the identifier table without assigning a class to them all. |
|
|
|
|
|
#24 | |
|
Forum King
Join Date: Mar 2004
Posts: 3,069
|
Quote:
|
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|