Solved

Php css style stops working inside php function call

Posted on 2013-01-04
2
391 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

751 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