close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Responsive Text in CSSMW sub level

Thread began 6/15/2015 3:45 pm by Jason | Last modified 6/16/2015 1:14 pm by Ray Borduin | 570 views | 7 replies |

Jason

Responsive Text in CSSMW sub level

I'm trying to create menu that has responsive text using cssmw. The top levels were no problem, but the sub-levels are proving to be extremely difficult. It looks like cssmw is creating a span using jquery, and for some reason the responsive text plugin isn't able to properly manipulate that span. I may be way off track with my diagnosis, but that's the only thing I could figure out. I'll post a link in the private message section so you can see it for yourself. If you zoom to 25% what I'm talking about is extremely evident. The main menu bar re-sizes perfectly, and any sub-levels do not.

Sign in to reply to this post

Jason

url in private message

Sign in to reply to this post

Ray BorduinWebAssist

The menus are all pure CSS so it isn't a jquery adjustment by webassist code. That span has to be added by one of the other scripts you have running. It might be the responsive text plugin adding the span or the browser-compatibility.js file.

Sign in to reply to this post

Jason

You're right as usual Ray! I created a test page first with only the cssmw and there was no span, and when I added the responsive text plugin, the span appeared. Unfortunately it hasn't resulted in any breakthrough. lol The responsive text plugin works perfectly everywhere else on my page, except in the sub-levels of the menu. Any idea what could be interfering with it in the the sub-level css? I attached the plugin folder if you wanted to take a look at it.

Attached Files
jquery-responsive-text-master.zip
Sign in to reply to this post

Ray BorduinWebAssist

Maybe we can find a solution and just ignore the spans... What don't you like about how the sub menus expand? I see that the white background doesn't expand with it. Is that the only problem?

Sign in to reply to this post

Jason

I'm open to a fix of any kind, but I definitely need the text to be responsive like the rest of the page. If you zoom all the way out you'll see what I'm saying. I can fix the background and sub-level 2 offset. I broke those in the process of trying to troubleshoot the responsive text issue.

I think I may have found part of the problem. It's got something to do with the class"parent" in cssmw. The responsive text plugin uses relational sizing and for some reason no matter what I do some of the ul's & li's with the parent class are getting a static font size. I think that's causing the issue because the responsive text is based somehow on a relational value from the body font size. I attached a screenshot of what I'm saying.

I also noticed that if I hover over the "Our Cabins" top level menu item and zoom out the sub-levels re-size correctly. Not sure why they don't work when they are hidden.

Sign in to reply to this post

Ray BorduinWebAssist

Well that actually answers the question... Lots of functions in jquery won't work for things that have display:none in the CSS.... since they technically have no size when they aren't displayed, then it can't resize them effectively.

One solution I can think of is to use jquery to add mouseover events to each of the menu <li> elements that call the window resize event so that it will re-calculate and resize the menu items as they are displayed.

I haven't tested, but it might look something like:

<script>
$( document ).ready(function() {
$('#cssmw0').find('li').each(function() {
$(this).mouseover( function() {
$(window).resize();
});
});
});
</script>
Sign in to reply to this post

Jason

I'm following you. My jQuery skills are pretty weak, but I'm going to give it a shot with what you sent me. Thanks so much for taking time to look into this for me!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...