Log In
Sign Up
Why Join Hot Scripts?
Hot Scripts
All Categories
PHP
Python
Tools & Utilities
XML
Ruby on Rails
Ajax
Web Hosting
ASP
ASP.NET
C & C++
CFML
Flash
Java
JavaScript
CGI & Perl
HTML5
Forums
Blog
Scripts
Hosted Apps
Plugins
Design Templates
Forum
Blog
Advertise
Contact Us
Register
FAQ
Rules
Calendar
Search
Today's Posts
Mark Forums Read
RSS Feeds
Current location:
Hot Scripts Forums
»
General Web Coding
»
CSS
» List always at the bottom of the div
List always at the bottom of the div
LinkBack
Thread Tools
Display Modes
#
1
(
permalink
)
04-18-09, 02:56 AM
bugzy
Newbie Coder
Join Date: Mar 2009
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
List always at the bottom of the div
Hello I'm new and css and I have problem putting the list inside the. It always at the bottom of the div I tried to use margin and padding but I cant get it to work.
Here's the css code for the DIV
#MenuList{
background-color: #485157;
height: 22px;
width: 850px;
border: thin black solid;
margin-top: 0px;
float: none;
}
CSS of the list
#MenuList ul li{
color: red;
display: inline;
font-weight: bolder;
font-style: normal;
list-style-type: none;
font-size: 12px;
font-family: Arial, Helvetica, sans-serif;
text-transform: uppercase;
padding: 0px 5px 4px;
}
HTML code of the list inside the div
<div id="MenuList">
<ul>
<li>Home</li>
<li>Games Replay</li>
<li>Download Games</li>
<li>NBA Avatars</li>
<li>NBA Photos</li>
<li>NBA News</li>
</ul>
</div>
Anyone? Thanks in Advance!
bugzy
View Public Profile
Find all posts by bugzy
#
2
(
permalink
)
04-18-09, 12:10 PM
fleep
Newbie Coder
Join Date: Jul 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
add this to the top of your css
Code:
*{ padding: 0; margin: 0; }
...actually this might be better because the one above will affect other elements on your page
Code:
ul{ padding: 0; margin: 0 }
Last edited by fleep; 04-18-09 at
12:15 PM
.
fleep
View Public Profile
Find all posts by fleep
#
3
(
permalink
)
04-21-09, 01:20 AM
harish
Newbie Coder
Join Date: Apr 2009
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
use this one hope this will solve your problem.
#MenuList{
background-color: #485157;
height: 22px;
width: 850px;
border: thin black solid;
margin-top: 0px;
float: none;
text-align:center;
}
__________________
New York Web design
||
Website design
||
Entertainment forum
harish
View Public Profile
Find all posts by harish
Bookmarks
Digg
del.icio.us
StumbleUpon
Google
«
Page Navigation???
|
CSS .. Table I think?
»
Currently Active Users Viewing This Thread: 1
(0 members and 1 guests)
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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
Off
HTML code is
Off
Trackbacks
are
On
Pingbacks
are
On
Refbacks
are
On
Forum Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
General Community
Announcements
Polls
The Lounge
New Members & Introductions
Script Requests
HotScripts.com Discussion
Hot Scripts Forum Questions, Suggestions and Feedback
General HotScripts Site Discussion
HotScripts Site Bug Reports
General Web Coding
HTML/XHTML/XML
HTML5
JavaScript
CSS
Flash & ActionScript
Programming Languages
PHP
Perl
ASP
ASP.NET
C/C++
Visual Basic
Windows .NET Programming
Everything Java
Other Languages
Other Discussions
Web Servers
Database
Other Topics
Web Design
API
Frameworks
AJAX
Security
Server Administration
Portable Device Programming
Cloud Computing
Ruby on Rails
CFML
Python
Tools and Utilities
Remotely Hosted
Web Hosting
Advertising Forums
General Advertisements
Job Offers & Assistance
Traffic Exchange
Website Reviews
Web Hosting Talk
DBForums.com
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Scroll to bottom of div with JavaScript
kaceykeleher
JavaScript
2
04-08-09
04:03 PM
go to the bottom of div
funny_shrshr
JavaScript
2
11-14-06
04:56 AM
DIV background (top & bottom images) overlapping?
sp1ky
CSS
1
11-12-06
10:53 AM
All times are GMT -5. The time now is
02:18 PM
.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Share on Facebook
Share on Stumble Upon
Share on Twitter