The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> conflicting scripts, script conflict affecting menu
brotherkarloz
post Sep 6 2011, 06:19 PM
Post #1





Group: Members
Posts: 3
Joined: 6-September 11
Member No.: 15,343



I have two scripts using the <UL> <LI> format, this is causing the menu not to display correctly

For example---

menu script starts like this:

<ul id="nav" class="dropdown dropdown-horizontal">
<li><a href="index.html">Home</a></li>


photo script starts like this:

<ul class="gallery clearfix">
<li><a href="images/fullscreen/1.jpg?lol=lol" rel="prettyPhoto[gallery1]" title="Vessel"><img src="images/thumbnails/t_1.jpg" width="60" height="60" /></a></li>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
rcanpolat
post Sep 6 2011, 06:30 PM
Post #2


Member
***

Group: Members
Posts: 76
Joined: 4-August 09
Member No.: 9,327



Im building a site using pretty photo also. The way my gallery's and nav's are laid out are like so and its not causing any issues

NAVIGATION
CODE

<div class="ddsmoothmenu" id="smooth menu">


GALLERY
CODE

<div class="sidebar">    
<div id="galleryx" class="gallery">


This post has been edited by rcanpolat: Sep 6 2011, 06:33 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Sep 7 2011, 01:30 AM
Post #3


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



How did you style these lists?
Can you post the url (address) of a page that demonstrates the problem?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
brotherkarloz
post Sep 7 2011, 07:49 PM
Post #4





Group: Members
Posts: 3
Joined: 6-September 11
Member No.: 15,343



QUOTE(Frederiek @ Sep 7 2011, 02:30 AM) *

How did you style these lists?
Can you post the url (address) of a page that demonstrates the problem?

Hi Frederiek,

Here's a link to the page with the conflicting scripts:

http://www.carlosaleman.com/test2
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
brotherkarloz
post Sep 7 2011, 07:50 PM
Post #5





Group: Members
Posts: 3
Joined: 6-September 11
Member No.: 15,343



QUOTE(rcanpolat @ Sep 6 2011, 07:30 PM) *

Im building a site using pretty photo also. The way my gallery's and nav's are laid out are like so and its not causing any issues

NAVIGATION
CODE

<div class="ddsmoothmenu" id="smooth menu">


GALLERY
CODE

<div class="sidebar">    
<div id="galleryx" class="gallery">



Here's the page with the problem:

http://www.carlosaleman.com/test2
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 7 2011, 08:43 PM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,731
Joined: 9-August 06
Member No.: 6



You need more specific CSS selectors. The below rule is needed for the image list, but messes the menu up. It will affect every LI on the page the way it's written and that's not what you want.

CODE
ul li { display: inline; }


Changing that makes for a big improvement, but the menu still looks a little funny so there is probably more to do.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Sep 8 2011, 01:43 AM
Post #7


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



In fact, both UL's have a their own class names and CSS styles. I have the impression that the prettyPhoto.css isn't having any effect, as it's overwritten by rules in the CSS files that follow. So, try putting the prettyPhoto.css *after* the other linked CSS files.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 8 2011, 12:22 PM
Post #8


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,731
Joined: 9-August 06
Member No.: 6



Does it have rule overriding the above one?
Sorry, you were talking about the gallery script. I misread.

Anyway, no CSS rule should have such a general selector if the purpose of the rule isn't actually to be generally applied. It's asking for trouble. Not saying you never can set a general rule and then override it, but then you must know what you are doing and remember what you've done.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 02:06 PM