Jump to content


Photo

PHP Include to fit in box and adjust page


  • Please log in to reply
11 replies to this topic

#1 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 12 October 2006 - 07:29 PM

Hi,

i need some help. As you can see on: http://www.islamcentre.net/ there is some arabic writing. The problem is that it overlaps the box it is in. What I want is the Arabic text and the translation and the srh.... bit to be inside the box.

Everytime you refresh the page a new quote loads up and each time they are different lengths. If anyone knows how to get that part into the box and for the page to adjust, meaning that box doesn't overlap the hadith bbox underneath and the footer below.

It would be much appreciated if you could help.

Thank You.
If u need any more information or don't get what I mean just post here, and i'll get back.

#2 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 12 October 2006 - 09:47 PM

anyone?

#3 TEENFRONT

TEENFRONT
  • Members
  • PipPipPip
  • Advanced Member
  • 338 posts

Posted 12 October 2006 - 09:52 PM

looks fine to me mate..
Teenfront.co.uk : Free Teen Chat -  FunkySmileys.co.uk : MSN Smileys -  ArcadeMonkey.co.uk : Free Flash Games
8Baller.co.uk : Free Multiplayer Pool [url=http://8Baller.co.uk]

#4 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 12 October 2006 - 10:01 PM

keep refreshing

#5 TEENFRONT

TEENFRONT
  • Members
  • PipPipPip
  • Advanced Member
  • 338 posts

Posted 12 October 2006 - 10:07 PM

oh i see..

not a php problem.

use a div to contain the text in the table.
Teenfront.co.uk : Free Teen Chat -  FunkySmileys.co.uk : MSN Smileys -  ArcadeMonkey.co.uk : Free Flash Games
8Baller.co.uk : Free Multiplayer Pool [url=http://8Baller.co.uk]

#6 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 13 October 2006 - 10:24 AM

As stated, this isn't a php problem, more an html issue.

You'd be better off using tables for something like that I'd imagine.

Try posting in the HTML forum on this one.

Regards
Huggie
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

#7 vbnullchar

vbnullchar
  • Members
  • PipPipPip
  • Advanced Member
  • 428 posts
  • LocationPasig City, Philippines

Posted 13 October 2006 - 10:39 AM

try this http://www.dyn-web.c...mes/height.html
Registered Linux User #399942
Ubuntu User #14134
--
my blog

#8 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 13 October 2006 - 12:32 PM

that's for a html iframe, i am using a php include (like an iframe)
anyone else know?

#9 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 13 October 2006 - 01:27 PM

1. Increase the size of the display box.
2. Decrease the size of the contents of the include, make it take less lines.
3. Make the inside of that box have a scrollbar instead to fit all the content you need to fit.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#10 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 17 October 2006 - 12:40 PM

no  i think u r thinking of a html iframe. I cannot decrease the size of the content as it load up a random quatoe from the holy Quran every time it is refreshed.

does anyone else know. I'm really stuck on this. I'm sure it is very simple. If you look at www.al-qaria.net (not my site) look to the right hand side at the arabic text with the english translation, keep refreshing and the box around it adjusts to fit that of the content.

If anyone could help it would be much appreciated. Thank You.

#11 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 18 October 2006 - 12:29 PM

?

#12 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 22 October 2006 - 10:24 PM

i'm still looking, anyone know?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users