![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, I'm starting my first website. It's at http://home.comcast.net/~CaptQueeg/A...ansTables.html. I can't figure out a couple of things: 1. The text "This site is under ..." doesn't start at the top. 2. The unordered "to-do" list seems to have some sort of border, despite the fact that I gave it a "border:none" attribute. Any suggestions gratefully accepted, like "intellectual alms." |
#3
| |||
| |||
|
|
In article 1186354661.075078.33... (AT) d55g2000hsg (DOT) googlegroups.com>, RichardL <RichardDummyMailbox58... (AT) USComputerGurus (DOT) com> wrote: Hi All, I'm starting my first website. It's at http://home.comcast.net/~CaptQueeg/A...ansTables.html. I can't figure out a couple of things: 1. The text "This site is under ..." doesn't start at the top. 2. The unordered "to-do" list seems to have some sort of border, despite the fact that I gave it a "border:none" attribute. Any suggestions gratefully accepted, like "intellectual alms." border:0 needs to be on the li not just the ul If you add: #to-do li {border:0;} to the end of your css, this will remove. As for the rest, you have made some errors in your css and deviated from the plan I thought you settled on before? You are now floating things right and not setting margins... -- dorayme |
#4
| ||||
| ||||
|
|
On Aug 5, 7:51 pm, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote: If you add: #to-do li {border:0;} to the end of your css, this will remove the unwanted lines. As for the rest, you have made some errors in your css and deviated from the plan I thought you settled on before? You are now floating things right and not setting margins... -- dorayme Hi dorayme, Thanks for looking in again at my foibles. Re: Spurious border lines. ================== I had #to-do {border:none;} Why wasn't that good enough. Can't CSS take a hint :-) |
|
I tried #to-do {border:none; border:0;} That didn't work. Weird. I tried #to-do {border:none; border:0;} That didn't work. Weird. |
|
I tried #to-do {border:0;} That didn't worked, but it wasn't "li" specific. So I finally got to what you advocated. Whew! And thanks. |
|
Re "deviated from the plan" Base on my intuition and, I believe, your endorsement, I think tables is the way to go. |
#5
| ||||||
| ||||||
|
|
In article 1186361512.350009.281... (AT) q75g2000hsh (DOT) googlegroups.com>, RichardL <RichardDummyMailbox58... (AT) USComputerGurus (DOT) com> wrote: On Aug 5, 7:51 pm, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote: If you add: #to-do li {border:0;} to the end of your css, this will remove the unwanted lines. As for the rest, you have made some errors in your css and deviated from the plan I thought you settled on before? You are now floating things right and not setting margins... -- dorayme Hi dorayme, Thanks for looking in again at my foibles. Re: Spurious border lines. ================== I had #to-do {border:none;} Why wasn't that good enough. Can't CSS take a hint :-) Because you are telling the element of id "to-do" not to have borders (in your own way!). You are not telling the list items. I tried #to-do {border:none; border:0;} That didn't work. Weird. I tried #to-do {border:none; border:0;} That didn't work. Weird. Well, the last is no wonder if the first did not work. They are the same attempt! And neither [1] will do because, as far as I can see, you are not instructing the list items themselves in this case. I tried #to-do {border:0;} That didn't worked, but it wasn't "li" specific. So I finally got to what you advocated. Whew! And thanks. Just always watch out for what it is you are instructing. What you tell a parent to do does not always go for the kids etc. (ever dealt with a parent and a teenager?). A ul is different to the list items in it, it can have borders with or without the list items having borders. Re "deviated from the plan" Base on my intuition and, I believe, your endorsement, I think tables is the way to go. Well, that is fine. It will be rock solid, especially for presenting off line! But I did give you a couple of simple and reasonably sturdy alternatives in some urls I made for you, using floats. For what you want, this might do. ------------ [1] I suppose no one wants to know about the identity of indiscernibles? If any one does, please do not discuss it here as it has nothing to do with html/css. Go read Leibniz or something. -- dorayme |
|
I had #to-do {border:none;} Why wasn't that good enough. Can't CSS take a hint :-) Because you are telling the element of id "to-do" not to have borders (in your own way!). You are not telling the list items. |
|
I tried #to-do {border:none; border:0;} That didn't work. Weird. I tried #to-do {border:none; border:0;} That didn't work. Weird. Well, the last is no wonder if the first did not work. |
|
Just always watch out for what it is you are instructing. What you tell a parent to do does not always go for the kids etc. (ever dealt with a parent and a teenager?). |
|
A ul is different to the list items in it, it can have borders with or without the list items having borders. |
|
But I did give you a couple of simple and reasonably sturdy alternatives in some urls I made for you, using floats. For what you want, this might do. |
#6
| |||
| |||
|
|
But the strange thing I discovered is that while #to-do li {borders:0} works #to-do li {borders:0} doesn't. |
#7
| |||
| |||
|
|
RichardL wrote: But the strange thing I discovered is that while #to-do li {borders:0} works #to-do li {borders:0} doesn't. Neither should. The syntax is { border: 0 } that's border without an 's'. You were getting a border because you specifically instructed LIs to have one in your CSS above that rule... li{border-top:2px solid #eee;} next you where only trying to clear the border on the *parent* UL with #to-do {border:0} and border propery is *not* inherited. See: http://www.w3.org/TR/CSS21/box.html#propdef-border you *must* specify the LI in question #to-do li { border: 0; } BTW the erroneous '-' at the end of your stylesheet throws a syntax error. -- Take care, Jonathan ------------------- LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com |
|
But the strange thing I discovered is that while #to-do li {borders:0} works #to-do li {borders:0} doesn't. Neither should. The syntax is { border: 0 } that's border without an 's'. |
|
BTW the erroneous '-' ,,, |
#8
| |||
| |||
|
|
But the strange thing I discovered is that while #to-do li {borders:0} works #to-do li {borders:0} doesn't. |
#9
| |||
| |||
|
|
In article 1186417751.015729.278... (AT) 22g2000hsm (DOT) googlegroups.com>, RichardL <RichardDummyMailbox58... (AT) USComputerGurus (DOT) com> wrote: But the strange thing I discovered is that while #to-do li {borders:0} works #to-do li {borders:0} doesn't. (1) You better read Leibniz on The Identity of Indiscernibles or (2) Your newsreader and/or keyboard is playing tricks or (3) My newsreader and/or eyesight is playing tricks on me -- dorayme |
|
(1) You better read Leibniz on The Identity of Indiscernibles |
|
(2) Your newsreader and/or keyboard is playing tricks |
#10
| |||
| |||
|
|
I'll keep you posted. |

![]() |
| Thread Tools | |
| Display Modes | |
| |