![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Professional Programmer
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4
![]() |
A gap even though margin and padding are specified to zero.
Can someone help me out with this problem at this page
http://n.1asphost.com/rosty/kjsc/index.asp Though I have set the margin and padding of the list menu (navigation menu on the left) as zero the list is displayed slightly away from the left of the div containing it. /*the left div CSS */
.leftcontainer{
background-color:#ABA08E;
float:left;
padding-left:0px;
padding-top:1px;
padding-bottom:1px;
padding-right:1px;
border:2px outset #ABA080;
width: 25%
}
/*the CSS code for UL*/
.menu ul{
margin: 0;
padding: 0
}
__________________
Visit: http://www.somaiya.edu |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
List style position? Marker specification? Gremlin? Unspecified but weird browser?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,799
Rep Power: 5
![]() |
It might not help, but you should at least try validating your HTML first: http://validator.w3.org/check?uri=ht...sc%2Findex.asp
If I can find some time, and no one has answered in the mean time, I'll look at the problem. |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Nov 2005
Posts: 122
Rep Power: 3
![]() |
It's becaue the <ul> is of class 'menu' - it's not a child of an element
of class 'menu'. Ditch the 'ul' and it'll work as expected. ![]() .menu
{
margin: 0;
padding: 0
}
__________________
"I'm going to become rich and famous when I invent a device that allows you to stab people in the face over the internet" |
|
|
|
|
|
#5 | |||
|
Professional Programmer
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4
![]() |
Quote:
![]() Quote:
Quote:
__________________
Visit: http://www.somaiya.edu |
|||
|
|
|
|
|
#6 | |
|
Unverified User
Join Date: Aug 2005
Location: none
Posts: 146
Rep Power: 0
![]() |
Quote:
__________________
Warning: My posts may change (dramatically) within the first 15 minutes they're posted. Got 'Nux?—GNU/Linux and other free software support. It's GNU/Linux, not just Linux. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Let's get this over and done with, once and for all [CSS enthusiasts this way] | megamind5005 | HTML / XHTML / CSS | 16 | Nov 10th, 2005 3:03 PM |