6 replies [Last post]
maybejb200
maybejb200's picture
User offline. Last seen 2 years 10 weeks ago. Offline
newbie
Timezone: GMT-5
Joined: 2010-03-09
Posts: 4
Points: 6

Ive been working on a mega drop down menu that I roughly learned how to do on sitepoint.com and have been able to customize it to my liking for the most part with what I taught myself about CSS styling. But I have not been able to figure out how to align my links in the mega drop down menu under one another instead of listing them right after one another like a paragraph. Now I originally changed my code from the demo so that instead of a paragraph the links were a unordered list. So im thinking that this can be solved with CSS. Ive attached my code below if anybody has an idea of whats going on.

I currently have a

tag within the code so that I could specifically select those sections and modify them to align to the left... but I can't manage it to do anything.

Deuce
Deuce's picture
User offline. Last seen 4 weeks 4 days ago. Offline
rank Guru
Guru
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4421
Points: 1840

Can you please post a link or

Can you please post a link or all of your code?

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

maybejb200
maybejb200's picture
User offline. Last seen 2 years 10 weeks ago. Offline
newbie
Timezone: GMT-5
Joined: 2010-03-09
Posts: 4
Points: 6

body { font-family: "Lucida

body {
font-family: "Lucida Grande", "Lucida Sans Unicode", "Verdana", sans-serif;
font-size: 11px;
background: #fff;
color: #333;
}

h1, h2, h3, h4, h5, h6, p, ul, li {
font-size: 1em;
margin: 0;
padding: 0;
}

div#banner {
background: transparent url(mega.gif) top left no-repeat;
padding-top: 12px;
padding-bottom: 36px;
}

div#banner h1, div#menu h2 {
margin: 0;
padding: 0;
}

div#banner h1 a {
display: block;
width: 270px;
height: 120px;
}
div#banner h1 a span, div#banner .skip {
position: absolute;
top: -10000px;
left: -10000px;
}

ul#menu {
background: #fff;
color: #fff;
margin: 0;
padding: 0.3em 0em;
}

ul#menu li {
display: inline;
margin: 0.1em 1em;
position: relative;
}

ul#menu h2, ul#menu h3 {
font-size: 100%;
font-weight: normal;
display: inline;
}

ul#menu li a {
color: #000;
text-decoration: none;
padding: 0 0.4em;
}

ul#menu li a:hover {
text-decoration: underline;
}

ul#menu li.mega a {
background: transparent url(arrow.gif) center right no-repeat;
padding: 0 1.2em;
}

ul#menu li.mega a:hover {
text-decoration: underline;
}

ul#menu div {
display: none;
}

ul#menu li.mega div {
border: 1px solid #dda;
width: 18em;
position: absolute;
top: 1.6em;
left: 0em;
padding: 1.3em;
background: #fff;
color: #930;
}

ul#menu li.hovering div {
display: block;
}

ul#menu li.mega div a {
color: #300;
padding: 0;
background-image: none;
text-decoration: underline;
}

ul#menu li div a.more {
color: #390;
font-weight: bold;
}

ul#menu div h3 {
color: #f70;
font-weight: bold;
font-size: 1.1em;
}
ul#menu div p {
margin: 0 0 0.8em 0;
padding: 0;
}

//

maybejb200
maybejb200's picture
User offline. Last seen 2 years 10 weeks ago. Offline
newbie
Timezone: GMT-5
Joined: 2010-03-09
Posts: 4
Points: 6

i put up a post shortly after

i put up a post shortly after this one with the complete code... couldn't figure it out the first time around sorry about that

CupidsToejam
CupidsToejam's picture
User offline. Last seen 16 weeks 6 days ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2008-08-15
Posts: 2634
Points: 1552

im tired of seeing this

im tired of seeing this


First basic few steps in building a webpage
1. Gather and collect content.
2. Organize the content into meaningful semantic valid HTML
3. Design the prototype
4. Style using CSS

http://www.pixelbehavior.com

thepineapplehead
thepineapplehead's picture
User offline. Last seen 2 weeks 4 days ago. Offline
rank Guru
Guru
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9667
Points: 799

This menu or double-posting?

This menu or double-posting? Tongue

Verschwindende wrote:
  • CSS doesn't make pies

Deuce
Deuce's picture
User offline. Last seen 4 weeks 4 days ago. Offline
rank Guru
Guru
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4421
Points: 1840

Most likely the lack of users

Most likely the lack of users pushing the button that says "CODE"

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph