Solved

Php css style stops working inside php function call

Posted on 2013-01-04
2
382 Views
Last Modified: 2013-01-05
Hi,

I'm having a problem with my css not working when I show results using a php function call.
Please see this page:
http://intra.tobiasfransman.net/albumi/
user: guest
pwd: guest321

I have commented the <divs> that are not expanding.
In my index.php a require a photos_functions.php file that goes to the mysql db and fetches some information that is being display on that page. but for some reason the css style sheet don't reach the photos_functions.php file.

Is the way to get this working. Please help me out.
I've attached the index.php file and photos_function.php files that has the problems and commented where the problem with css is.

Regards,
Toby
index.php
photos-functions.php
0
Comment
Question by:Toube
2 Comments
 
LVL 34

Accepted Solution

by:
gr8gonzo earned 350 total points
Comment Utility
Just because the background image is 890 pixels wide does not mean that the element will expand to 890 pixels. I don't see any code in here that would tell the elements to expand to 890 pixels wide.

You could add something like:
width:890px

as a CSS rule to instruct the browser to set that width of a div. That said, I don't really see the problem. It looks like it's expanded to 890 pixels in my browser already...
0
 

Author Closing Comment

by:Toube
Comment Utility
Thanks,

it was my bad coding.. the images should be 917px and not 890px of width :)

Br,
Toby
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now