Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: Format issue

Format issue 1 year 1 month ago #44069

  • bezu60
  • bezu60's Avatar
  • OFFLINE
  • OSTar
  • Posts: 89
  • Karma: 0
I think I asked this before but I am not sure I explained fully.

On my Drupal site I have three columns. On the left is a block with three clickable items.
If any links are exactly parallel with one of these links in the center or the right columns, the links do not work in Chrome or Firefox. If I keep clicking on them a blue line appears connecting them to the links on the left.

To see this go to www.nysec.org. The links in question are under Resources on the left. Notice that the Read More link on the far right under Macbeth does not work. Removing the block on the left activates the link on the right.

I am not very confident using firebug and CSS so if you could possibly tell me exactly what I have to do in order to fix this I would greatly appreciate it!

Beth

Please become a member of OSTraining to reply to this post.

Format issue 1 year 1 month ago #44076

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Hi Beth,

I haven't pinpointed it yet, but it seems to have to do with the width of your menu.

As you can see from the screenshot, it extends across the entire page. Firefox seems to be forgiving of the issue, other browsers treat it differently.

Try validating your css for different browsers using an online validation service.

Ed
Please become a member of OSTraining to reply to this post.

Format issue 1 year 1 month ago #44080

  • bezu60
  • bezu60's Avatar
  • OFFLINE
  • OSTar
  • Posts: 89
  • Karma: 0
I wouldn't have a clue how to do that. Also...I don't see a file with a screenshot?

How would I edit the menu size? Where would I find that?
Please become a member of OSTraining to reply to this post.

Format issue 1 year 1 month ago #44084

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
In the previous thread, I showed you the width for the menu was 1000pixels wide. That's where you would start to fix this. Change that width and see if it fixes anything.

Cheers,
Ed
Please become a member of OSTraining to reply to this post.

Format issue 1 year 1 month ago #44085

  • bezu60
  • bezu60's Avatar
  • OFFLINE
  • OSTar
  • Posts: 89
  • Karma: 0
Change it where? How do I find the right place?
Please become a member of OSTraining to reply to this post.

Format issue 1 year 1 month ago #44088

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
If you are using Firfox and Firebug you can track down the file you need to change. We have a tutorial on using firbug that may help you.
www.ostraining.com/blog/joomla/using-fir...it-joomla-templates/
and
www.ostraining.com/blog/coding/firebug-logos/


You'll need to find this section in the css files. Be sure to save a copy of the original so you can restore it if you make any mistakes.

.menu {
position: relative;
text-align: left;
width: 1000px;
z-index: 10;
}

When you inspect the element in Firebug, it also shows you what css file you need to edit. See the screenshot for the location of the file name. Mousing over it will give you the location.

ed
Please become a member of OSTraining to reply to this post.

Format issue 1 year 1 month ago #44089

  • bezu60
  • bezu60's Avatar
  • OFFLINE
  • OSTar
  • Posts: 89
  • Karma: 0
How low should I to start...500?
Please become a member of OSTraining to reply to this post.

Format issue 1 year 1 month ago #44093

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
How wide is column that it's in? It looks like it's only 250 or 300 pixels wide.

You might get a clue from inspecting an element above this section and see what width that is set at. Make this the same.

Ed
Please become a member of OSTraining to reply to this post.

Format issue 1 year 1 month ago #44096

  • bezu60
  • bezu60's Avatar
  • OFFLINE
  • OSTar
  • Posts: 89
  • Karma: 0
I can't figure out how to access my CSS file. I've done it before but I forget. I'm in my files and I see a style.css in themes/garland but when I download and view I can't find the right section
Please become a member of OSTraining to reply to this post.

Format issue 1 year 1 month ago #44102

  • bezu60
  • bezu60's Avatar
  • OFFLINE
  • OSTar
  • Posts: 89
  • Karma: 0
I have my CSS file but I can't find the line. it says it should be line 227 in style.php but that does not work...it is something else. But in firebug that's what is says, no?
Please become a member of OSTraining to reply to this post.

Format issue 1 year 1 month ago #44105

  • bezu60
  • bezu60's Avatar
  • OFFLINE
  • OSTar
  • Posts: 89
  • Karma: 0
And in firebug if I change it to 300px it seems to do the trick. But like I said...I can't find the line. It's probably something obvious but I'm stuck.
Please become a member of OSTraining to reply to this post.

Format issue 1 year 1 month ago #44109

  • bezu60
  • bezu60's Avatar
  • OFFLINE
  • OSTar
  • Posts: 89
  • Karma: 0
This is what I see in firebug:

.menu { style.php(line 227)
position: relative;
text-align: left;
width: 1000px;
z-index: 5;

But when I go to style.php line 227 I see:

#home-box p {
font-variant: small-caps;
Please become a member of OSTraining to reply to this post.

Format issue 1 year 1 month ago #44226

  • steve
  • steve's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3054
  • Thank you received: 163
  • Karma: 26
Hi bezu60

Did you fix this by any chance? I'm testing in Chrome and Firefox on Mac and those three resources links work great for me.
Ask. We'll help. It's as simple as that.

Follow us on Twitter - twitter.com/ostraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Format issue 1 year 4 weeks ago #44392

  • bezu60
  • bezu60's Avatar
  • OFFLINE
  • OSTar
  • Posts: 89
  • Karma: 0
You don't understand the problem. Those links always work. It is the links that are parallel to them in the center and on the right that are rendered useless in Chrome. It has been suggested that this is a width problem but when I look in my CSS on the line that firebug tells me I will find this, it is not there.

The link has to be exactly parallel to one of the Resource links to stop working. And it will still work in IE.
Please become a member of OSTraining to reply to this post.

Format issue 1 year 4 weeks ago #44422

  • jmc
  • jmc's Avatar
  • NOW ONLINE
  • OSTop Dog
  • Posts: 1385
  • Thank you received: 109
  • Karma: 8
Hi
I realise that this is a drupal question - something I know little about!
The links in the left side column have the same css class as the main menu at the top of the page. This is why it has a width of 1000px associated with it. Can you not just enter the links on the left as "normal" text links and remove the class of menu?
Regards
Mark
Please become a member of OSTraining to reply to this post.

Format issue 1 year 4 weeks ago #44423

  • bezu60
  • bezu60's Avatar
  • OFFLINE
  • OSTar
  • Posts: 89
  • Karma: 0
I suppose I could but that is how I had it before and this looks much cleaner
Please become a member of OSTraining to reply to this post.

Format issue 1 year 4 weeks ago #44427

  • jmc
  • jmc's Avatar
  • NOW ONLINE
  • OSTop Dog
  • Posts: 1385
  • Thank you received: 109
  • Karma: 8
Hi
The css might (and this is a guess) be difficult to find because it could be generated by php to make the top menu the width of your template; if it has a variable width setting.
Maybe the simplest way would be to set up a new menu class in the css style file. something like
.mysidemenu{ }
you could copy and paste the main properties that you want from the existing template.
You could also use
.mysidemenu ul{ } etc to style it exactly how you want.

Regards
Mark
Please become a member of OSTraining to reply to this post.

Format issue 1 year 4 weeks ago #44428

  • bezu60
  • bezu60's Avatar
  • OFFLINE
  • OSTar
  • Posts: 89
  • Karma: 0
Thanks Mark... the only issue is that I don't know how to do that:)But someone is coming to my office Thursday who might be able to help.

Beth
Please become a member of OSTraining to reply to this post.

Format issue 1 year 4 weeks ago #44460

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16822
  • Thank you received: 391
  • Karma: 57
Hi Beth,

You can insert the following CSS within one of your theme's CSS files to correct the issue:
.block-content .menu {width:350px;}

Looks like your CSS file might be located at: /sites/all/themes/nysec-look/style.css

Hope this helps!

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Format issue 1 year 4 weeks ago #44476

  • bezu60
  • bezu60's Avatar
  • OFFLINE
  • OSTar
  • Posts: 89
  • Karma: 0
Firebug says it is style.php

style.css is very short and does not have the parameter I need to edit.
Please become a member of OSTraining to reply to this post.

Format issue 1 year 4 weeks ago #44484

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16822
  • Thank you received: 391
  • Karma: 57
Hi Beth,

The code can be inserted into any CSS file that loads onto the page. Also, you won't be able to edit it since it's not present in any CSS file, so you would have to insert it.

By the way, .php files in Firebug's CSS area usually means that the site has optimization and that the CSS files are being modified (usually by compression). You won't actually be able to find php files on your server with the CSS code in it (It's all in CSS files), but rather it's outputted when the page is requested.

Hope this helps!

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Format issue 1 year 3 weeks ago #44610

  • bezu60
  • bezu60's Avatar
  • OFFLINE
  • OSTar
  • Posts: 89
  • Karma: 0
Wow!!! It worked. Thank-you so much!!!!!!
Please become a member of OSTraining to reply to this post.

Format issue 1 year 3 weeks ago #44611

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16822
  • Thank you received: 391
  • Karma: 57
You're welcome, Beth! We're glad to be of help! :)

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Format issue 1 year 3 weeks ago #44654

  • bezu60
  • bezu60's Avatar
  • OFFLINE
  • OSTar
  • Posts: 89
  • Karma: 0
Oops ...spoke to soon. Please look at www.nysec.org/staffandleadership and try to click on the blog entries on the far right (in Chrome). It looks like it may be another bit I need to add. The blue line across does not go all the way to the left so it may be a center width issue?
Please become a member of OSTraining to reply to this post.

Format issue 1 year 3 weeks ago #44667

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Hi Beth,

It still looks like a problem with the memu widths. On both sides of the page.

I attached a screen shot of Chrome with the elements inspected. The gray bar represents the width of the li element on the right. The blue bar shows the width of the li elements on the left. You can see that they overlap.

In addition the width of the menu itself is still 1000 pixels. I'm not good enough at CSS to do this remotely, maybe Nick, Tessa or Mark can give you an exact answer. But i still see the problem as caused by widths specified for your menu items.

To me this doesn't look like a simple one-line fix. There are multiple width issues.
In the second screen shot you can see the width of the menu, which is now 1012 px instead of 1000.

Ed
Please become a member of OSTraining to reply to this post.

Format issue 1 year 3 weeks ago #44668

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16822
  • Thank you received: 391
  • Karma: 57
Looks like for www.nysec.org/sites/all/themes/nysec-look/css/styles.css the following code was inserted:
.block-content .menu .leaf {
    width: 200px;
}

Rather than:
.block-content .menu {
    width: 200px;
}

So, just get rid of the .leaf or insert the whole 2nd set of code underneath.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Format issue 1 year 3 weeks ago #44676

  • bezu60
  • bezu60's Avatar
  • OFFLINE
  • OSTar
  • Posts: 89
  • Karma: 0
We added the .leaf today to see if we could fix it. It's not what is doing it. But I removed it just the same. Someone thought it might help override whatever is not letting it work.

Currently it works sometimes and not others. I'm told this is because it depends how the page loads and that something else is overriding it half the time. Is there something I can add that will make it take precedence over all other commands?

Beth
Please become a member of OSTraining to reply to this post.

Format issue 1 year 3 weeks ago #44677

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16822
  • Thank you received: 391
  • Karma: 57
Hi Beth,

Add !important after it. Like so:
.block-content .menu {
width: 200px !important;
}

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Format issue 1 year 3 weeks ago #44690

  • bezu60
  • bezu60's Avatar
  • OFFLINE
  • OSTar
  • Posts: 89
  • Karma: 0
So far so good! Thanks again.
Please become a member of OSTraining to reply to this post.

Format issue 1 year 3 weeks ago #44691

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16822
  • Thank you received: 391
  • Karma: 57
You're welcome, Beth! Glad we could help! :)

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Powered by Kunena Forum

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.