Solved

Php css style stops working inside php function call

Posted on 2013-01-04
2
388 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

785 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