CSS and includes

This is a discussion on "CSS and includes" within the Web Page Design section. This forum, and the thread "CSS and includes are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 11th, 2005, 18:11
New Member
Join Date: Aug 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
CSS and includes

Can anyone help? I am using a third party image gallery on my site that is CSS driven on the layout. When I add my banner and navigation bar to the page using php include as I have on all the other pages, the CSS for the gallery messes up my menu (DHTML) and the table in my banner.
My question is, can I hide the navbar and banner from the CSS for the gallery so I doesnt change my layout. I thought about using frames, but that is old school isnt it?

Update - have tried IFRAME - rubbish

Thanks Guys
Reply With Quote

  #2 (permalink)  
Old Aug 13th, 2005, 23:58
New Member
Join Date: Aug 2005
Location: My computer
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Frenzy Send a message via MSN to Frenzy
This sounds more of a css error. I would double check your style.css to see if everything is correct. And then check to see if this correctly put in the header.php of your includes:

<link rel=stylesheet href="/styles.css" type="text/css">

If that doesn't work, it could be your browser. A lot of sites tend to look weird under Mozilla Firefox (e.g. things are placed incorrectly and the colors are wrong), though they look fine in Internet Explorer.
Reply With Quote
  #3 (permalink)  
Old Aug 14th, 2005, 08:03
New Member
Join Date: Aug 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
CSS and includes

I hear what your saying, but, the CSS is doing what it is supposed to on the content on the image gallery, but I dont want it to affect my header and navbar.

For example the CSS sets the size of images to 150px which is OK for the gallery, but my navbar has image spacers which should be 3px wide but are being set to 150px
Reply With Quote
  #4 (permalink)  
Old Aug 14th, 2005, 08:27
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
Are you using classes? if so, are any of the names duplicated in the css for the image gallery to the css for your navbar? and if you're not using classes, then maybe you should put a class on all the spacer images in the gallery or navbar so that they behave differently?

(and i think its more likely that IE has got things wrong, because Firefox is more compliant than IE!)
Reply With Quote
  #5 (permalink)  
Old Aug 14th, 2005, 10:31
New Member
Join Date: Aug 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
css and includes

The navbar doesnt have any css styles. This is a very simple DHTML menu. The banner has one style only for the text and this is reproduced on the gallery CSS. The biggest problem is the images on the nav bar being expanded.

you can see the problem page here: http://www.genetic-gems.com/gallery/index.php

and how it should look here: http://www.genetic-gems.com/pages/index.php

Update: when veiwed with Firefox - everything is perfect!!!!
Obviously some issues with Navigator/IE
Reply With Quote
Reply

Tags
css, includes

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
xsl includes sconard Other Programming Languages 0 Aug 24th, 2006 13:11
PHP Includes lesleindotcom PHP Forum 3 May 31st, 2006 20:54
PHP Includes daygon PHP Forum 5 Mar 16th, 2006 01:59
Further Help with Includes freebirdnz Classic ASP 3 Aug 5th, 2004 13:48
Help with includes. freebirdnz Classic ASP 5 Aug 3rd, 2004 14:38


All times are GMT. The time now is 16:18.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43