Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 11-18-2004, 15:35   #1 (permalink)
Justin Koivisto
Civilians

 
Default ul, css, browsers, margins/padding

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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 11-18-2004, 15:35   #2 (permalink)
GreyWyvern
Civilians

 
Default Re: ul, css, browsers, margins/padding

On Thu, 18 Nov 2004 1812 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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-18-2004, 15:35   #3 (permalink)
Justin Koivisto
Civilians

 
Default Re: ul, css, browsers, margins/padding

GreyWyvern wrote:

> On Thu, 18 Nov 2004 1812 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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 10:07.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 0.84378 seconds with 19 queries