![]() | ![]() | ![]() |
| |||||||
| Forums | Register | Groups | Awards | Arcade | Pets | T-Bucks / T-Store | Invite Your Friends | Blogs | Mark Forums Read |
| Web Design Forums and discussions on webdesign |
Web Design | |||||||||
|
|
|
|
| |||||
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Civilians | http://www.reservoir5.com/aww/UL-margin.jpg Above is a screen shot of Opera, MSIE and Mozilla displaying the same page. The guy I am doing this for would like the menu to be about in the same place for each of these browsers... The page as this HTML for the layout: ------------------------------------- <table id="placement"> <tr> <td rowspan="2" width="65"><!-- stupid grid background --></td> <td valign="top" id="navMenu"> <ul> <li><a href="/">Home</a></li> <li><a href="/about/">About Us</a></li> </ul> </td> <td id="pageContent"> ... </td> </tr> </table> ....and the related positioning CSS: ----------------------------------- #placement{ position: absolute; top: 0px; left: 0px; } #navMenu{ padding: 0px 15px 0px 0px; width: 125px; margin: 0px; } #navMenu ul{ margin: 10px 15px 0px; } #navMenu ul li ul{ padding-left: 1em; margin: 0px; } I don't think it can be done easily, but I thought I'd pop this out to the experts and see what feedback I get back. TIA! -- Justin Koivisto - spam@koivi.com http://www.koivi.com |
|
| | #2 (permalink) |
| Civilians | On Thu, 18 Nov 2004 18 12 GMT, Justin Koivisto <spam@koivi.com> wrote:> http://www.reservoir5.com/aww/UL-margin.jpg [snip] > #navMenu ul{ > margin: 10px 15px 0px; > } [snip] > I don't think it can be done easily, but I thought I'd pop this out to > the experts and see what feedback I get back. While Opera and IE use the margin on <ul>'s to cause an indent, Mozilla uses padding, just set padding:0px; in #navMenu ul (above) and all shall be well. Grey -- The technical axiom that nothing is impossible sinisterly implies the pitfall corollory that nothing is ridiculous. - http://www.greywyvern.com - Orca Knowledgebase: Completely CSS styleable Knowledgebase/FAQ system |
|
| | #3 (permalink) |
| Civilians | GreyWyvern wrote: > On Thu, 18 Nov 2004 18 12 GMT, Justin Koivisto <spam@koivi.com> wrote:> >> http://www.reservoir5.com/aww/UL-margin.jpg > > [snip] > >> #navMenu ul{ >> margin: 10px 15px 0px; >> } > > [snip] > >> I don't think it can be done easily, but I thought I'd pop this out >> to the experts and see what feedback I get back. > > While Opera and IE use the margin on <ul>'s to cause an indent, Mozilla > uses padding, just set padding:0px; in #navMenu ul (above) and all > shall be well. DOH! I knew that... Just another one of those days... Thanks for reminding me. ![]() -- Justin Koivisto - spam@koivi.com http://www.koivi.com |
|
![]() |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| padding around column headers | Kevin | Microsoft Applications | 2 | 08-16-2005 12:00 |
| cell formatting zero padding on binary no's | RossK | Microsoft Applications | 3 | 03-10-2005 20:00 |
| margins | =?Utf-8?B?c2lzb28=?= | Microsoft Applications | 2 | 12-16-2004 13:00 |
| Image padding / borders | Carl Gilbert | Web Design | 1 | 12-11-2004 13:00 |
| [News Feed] GOP Accused of Padding Intelligence Bill (AP) | Hannibal | News Articles | 0 | 09-29-2004 18:00 |
![]() | ![]() | ![]() |