Page Height - Post ID 210256

User 7596 Photo


Registered User
22 posts

Eric,

I have no idea about how to do that nor understand what I would be doing. Could you help? Would appreciate. rob
User 122279 Photo


Senior Advisor
14,624 posts

Do we know what those dropdowns are supposed to look like? I have assumed that they should have the orange background, so I have made a suggestion here: www.eikweb.com/test :)

While doing so, I removed tons of outdated html tags that should better be turned into css instead. I have a hunch that this mish mash of css and presentational html tags have been causing the weird look of the menu.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 187934 Photo


Senior Advisor
20,267 posts
Online Now

Nice job Inger.;)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 7596 Photo


Registered User
22 posts

Inger,

Looks good. Attached is the original "look". Font is a little smaller, but that's basically it. The width of the "content" area is a little wider than the menus. But, with some minor adjustments it looks good. I really appreciate your help to clean things up.

This "mis-mash" came from a Coffee Cup template. I didn't change much.

However, now I don't know what to do with it as far as other pages that I have been working on. I'm really a very novice web page coder. Took a course at the university on CSS and Dreamweaver, and have been struggle with trial and error ever since. I've considered just using the menu creator in Coffee Cup's html editor and start from scratch. However, it's looking pretty good so far, so I think I will just leave things alone.

1. Do I need a css file to go with your new source code now, or is this page self-contained?
2. What do you think I should do with some of the other pages I have been working on? e.g.
http://social-style.com/beta/index2.html
http://social-style.com/beta/book.html
http://social-style.com/beta/page_template.html

Since I didn't have any bullets on these pages, I didn't have any problems with them. So should I just leave them alone and keep them linked to the CSS file "socialstyle.css"?

rob



Attachments:
User 122279 Photo


Senior Advisor
14,624 posts

I think we attacked it from the wrong angle the other day. Instead of targeting those special lists, we messed with all of them, and that made the menu go out of shape.

Not sure what advice would be best for you. Personally I would have started from scratch, writing all the html and css myself. But since you are a novice to this, as you say, I would perhaps suggest that the easiest solution is, that you keep the pages as they are, and for the index page, use the same css file, but add a rule for lists that are inside the content area:

#content ol, #content ul {
margin-left: 20px;
}

But then all the presentational html tags will remain in the document, causing a slower loading time.

And also, the <div id="group-list"> has to be converted to <div class="group-list" because it appears twice on the page. One and the same div ID can only be used once. Then in the css file, convert all the instances of #group-list to .group-list.

Another thing: I understand you are using Dreamweaver. If it is a newer version, I guess it has support for html5? Since you are using a css3 style sheet, you ought to have the html5 doctype too.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 7596 Photo


Registered User
22 posts

Ingrid,

This CSS code -

#content ol, #content ul {
margin-left: 20px;
}

worked perfectly on my original CSS before all the modifications, and menus look fine. Thank you sooooooo much!

Regarding "And also, the <div id="group-list"> has to be converted to <div class="group-list" because it appears twice on the page. One and the same div ID can only be used once. Then in the css file, convert all the instances of #group-list to .group-list."......

Where did you see <div id="group list"> twice on the same page?

I have Dreamweaver CS4.


User 122279 Photo


Senior Advisor
14,624 posts

Sorry, it was <ul id="group_list">, but look down this bit of code and you will see it once for each of the sub menus.


<ul id="navigation">
<li><a href="http://social-style.com">Home</a></li>
<li><a href="http://social-style.com/blog">Blog</a></li>
<li><a href="http://social-style.com/ss02.htm">sales applications</a></li>
<li><a href="#">Order materials</a>
<ul id="group_list">
<li><a href="http://social-style.com/ss.htm">Book</a></li>
<li><a href="http://social-style.com/ss.htm">Self Perception</a></li>
<li><a href="http://social-style.com/ss.htm">Intro to Soc. Style</a></li>
</ul>
<li class="seminars"><a href="#">Seminars</a>
<ul id="group_list">
<li><a href="http://social-style.com/ss04.htm">ISS (1/2 day)</a></li>
<li><a href="http://social-style.com/onsite.htm">PRO (1 day)</a></li>
<li><a href="http://professional-learning.com/versatilitycoaching.htm">Coaching (1day +)</a></li>
</ul>
<li><a href="http://www.social-style.com/blog/contact">Contact</a></li>
</ul>


And please note: my name is Inger, not Ingrid.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 7596 Photo


Registered User
22 posts

Sorry about that Inger. :/ I hope I didn't offend you.

You are the first person I have ever met that has that name. It's not very common in my country.

Thanks for clarifying. I believe you when you say it is wrong, but it doesn't seem to cause any problems. But to avoid this duplication could I could create <ul id=grouplist">and <ul id="grouplist2"> for each of the drop down menus, and then in CSS -

/* Drop-Down Category Menu #1 */
#group_list {position:absolute; top:auto; left:-999em; width:153px; border-top:1px solid #dd692a; background-color:#ef712d}
#navigation li:hover #group_list, #navigation li.sfhover #group_list {left:auto}
#group_list li {width:140px; margin:0; padding:5px; font-size:.85em; text-transform:none; background:#ef712d}
#group_list li a {display:block; padding:5px 5px 5px 15px; text-align:left; text-decoration:none}
#group_list li a:hover {text-decoration:underline; background:none}

/* Drop-Down Category Menu #2 */
#group_list2 {position:absolute; top:auto; left:-999em; width:153px; border-top:1px solid #dd692a; background-color:#ef712d}
#navigation li:hover #group_list, #navigation li.sfhover #group_list2 {left:auto}
#group_list2 li {width:140px; margin:0; padding:5px; font-size:.85em; text-transform:none; background:#ef712d}
#group_list2 li a {display:block; padding:5px 5px 5px 15px; text-align:left; text-decoration:none}
#group_list2 li a:hover {text-decoration:underline; background:none}

Would this work?
User 122279 Photo


Senior Advisor
14,624 posts

Yes, that would work. Leaving it as it is will usually not cause any problems, but since it does not validate, there might be some funnies with some browsers (there are oodles more than Ffx, IE, Safari, Opera and Chrome), displaying it all over the place.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.