Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Php css style stops working inside php function call

Posted on 2013-01-04
2
Medium Priority
?
395 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 1400 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
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…

704 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