Solved

Php css style stops working inside php function call

Posted on 2013-01-04
2
387 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
ID: 38745634
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
ID: 38746531
Thanks,

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

Br,
Toby
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

920 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

16 Experts available now in Live!

Get 1:1 Help Now