/    Sign up×
Community /Pin to ProfileBookmark

displaying php functions at different parts of the screen

hello , i have the weirdest problem ;
i have 2 functions and i want to run them and display them on the screen where i want them to be shown , my code is :

[COLOR=”RoyalBlue”]<?
include(‘../statsconnect.php’);
include(‘../league_table_functions.php’);
?>

<div id=”Layer2″ style=”position:absolute; left:442px; top:105px; width:201px; height:181px; z-index:6″><?php turkey_league_table(); ?></div>

<div id=”Layer1″ style=”position:absolute; left:147px; top:105px; width:205px; height:189px; z-index:7″><?php league_table_away(1); ?></div>[/COLOR]

both functions display tables , and works perfectly individually . This code should display my functions side by side with a little gap between them.
However they are liked glued together and the first function always displays on top of the other one . No matter what i did i couldnt change this. Help please….

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@MrCoderJul 06.2007 — You should post this on the CSS forum.
Copy linkTweet thisAlerts:
@barantamerauthorJul 06.2007 — when i try the exact code with pics instead of php functions , this code works perfectly , actually i am so confused , and never seen a problem like this. Am i not allowed to run 2 different functions in an html page and put the results on different places on the screen ?
Copy linkTweet thisAlerts:
@temp_user123Jul 06.2007 — The issue is a CSS issue. The following will (should) make these flow better.
[code=html]
<div id="Layer2" style="width:201px; height:181px; float:left;"><?php
turkey_league_table(); ?></div>

<div id="Layer1" style="width:205px; height:189px;"><?php
league_table_away(1); ?></div>[/code]
×

Success!

Help @barantamer spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...