![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, In my (seemingly) endless quest to understand CSS, I have yet another problem. Please look at http://www.kidsinaction.org.uk/ph/x.html in Opera, where you will see it how I expected. If you look at it in IE (6 or 7), you find it also looks fine, except for the top margin missing from the links across the top of the page. That's not the main issue here, but any pointers as to why it doesn't show them would be appreciated. The problem comes when you view the page in Firefox. The links on the left side of the page are indented by far more than I would have expected. |
|
The way I intended it to work was to put 15px left margin on the top level <ul>, then 10px left margin on every <li>. That makes the top level items have a 25px left margin, that matches the width of the red triangle at the left end of the FREEPHONE div. Each successive level of links should be indented by 10px more than its parent. |
|
Trouble is, FF adds much more indent than this. Any idea why? TIA |
#3
| ||||
| ||||
|
|
Alan Silver wrote: snip The problem comes when you view the page in Firefox. The links on the left side of the page are indented by far more than I would have expected. They look the same to me in Firefox (1.5.0.3) and in Opera (9 beta) but different [and I think the way you want then to] in IE 7 (b2) |
|
Trouble is, FF adds much more indent than this. Any idea why? TIA What's happening, as your code is right now, is you've got the padding-left on the <ul> [of whatever the default is. |
|
To do what you wanted above try this modification of your code: snip |
|
ps. I don't see a red triangle |
#4
| |||
| |||
|
|
In my (seemingly) endless quest to understand CSS, I have yet another problem. Please look at http://www.kidsinaction.org.uk/ph/x.html in Opera, where you will see it how I expected. If you look at it in IE (6 or 7), you find it also looks fine, except for the top margin missing from the links across the top of the page. |
#5
| |||
| |||
|
|
Now I have the indent issue sorted, anyone any ideas why these top border don't show up? TIA |
#6
| ||||
| ||||
|
|
In my (seemingly) endless quest to understand CSS, I have yet another problem. Please look at http://www.kidsinaction.org.uk/ph/x.html in Opera, where you will see it how I expected. If you look at it in IE (6 or 7), you find it also looks fine, except for the top margin missing from the links across the top of the page. That's not the main issue here, but any pointers as to why it doesn't show them would be appreciated. |
|
The problem comes when you view the page in Firefox. The links on the left side of the page are indented by far more than I would have expected. |
|
The way I intended it to work was to put 15px left margin on the top level <ul>, then 10px left margin on every <li>. That makes the top level items have a 25px left margin, that matches the width of the red triangle at the left end of the FREEPHONE div. Each successive level of links should be indented by 10px more than its parent. Trouble is, FF adds much more indent than this. Any idea why? TIA |
|
Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
#7
| |||
| |||
|
|
| Trouble is, FF adds much more indent than this. Any idea why? TIA Because they wanted to? Specify everything, margin, border, padding, and see if that gets you in control. You _may_ also have to specify some of the MOZ custom properties where used in the FF default stylesheets. |
#8
| |||
| |||
|
|
Alan Silver wrote: Now I have the indent issue sorted, anyone any ideas why these top border don't show up? TIA I don't know why but I can make it go away. In #sectionlinks remove float:right; and in its place put in text-align:right; |
|
When it's floated the top border decides to go for a wander in IE. Who the hell knows why. |
#9
| |||
| |||
|
|
I don't know why but I can make it go away. In #sectionlinks remove float:right; and in its place put in text-align:right; Hmm, I tried that, and the top border appeared, but nothing else!! no text and no side borders. As soon as I put my mouse over it, the whole thing appeared correctly. I haven't time to look at it now, will have to examine it further tomorrow. |
#10
| |||
| |||
|
|
Alan Silver wrote: I don't know why but I can make it go away. In #sectionlinks remove float:right; and in its place put in text-align:right; Hmm, I tried that, and the top border appeared, but nothing else!! no text and no side borders. As soon as I put my mouse over it, the whole thing appeared correctly. I haven't time to look at it now, will have to examine it further tomorrow. Really? |
|
I used this code #sectionlinks { text-align: right; margin: 0; font-size: 0.8em; list-style: none; } and it worked perfectly |
![]() |
| Thread Tools | |
| Display Modes | |
| |