Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Bury043 - lokakuu 28, 2013, 08:01:19 AP

Otsikko: HTML Page Height
Kirjoitti: Bury043 - lokakuu 28, 2013, 08:01:19 AP
Hello,
I'm using HTML to create an MOTD for my forum.
I'm not very experienced with html, but i used a simple portal page to do it.
The page isn't expanding to fit my text, it either goes of the page or cuts of completely.
http://www.bgservers.co.uk/index.php?page=test
If anyone could explain how to fix this, i would appreciate it.
Thanks,
Ryan
Otsikko: Re: HTML Page Height
Kirjoitti: margarett - lokakuu 28, 2013, 08:11:44 AP
Lainaa
    You are here: BGServers

An Error Has Occurred!
The page you requested cannot be found.

Anyway, you should probably address your question to the mod support topic ;)
Otsikko: Re: HTML Page Height
Kirjoitti: Bury043 - lokakuu 28, 2013, 08:16:41 AP
Yea, i edited the permissions:P
Okay, im just not sure if it is simple portal or smf, not very experienced with either!
Thanks
Otsikko: Re: HTML Page Height
Kirjoitti: Illori - lokakuu 28, 2013, 08:21:18 AP
in your page you have

<div style="width: 1000px; hight: 10000; overflow: hidden;"> the height/width and overflow hidden is causing most if not all your issues.
Otsikko: Re: HTML Page Height
Kirjoitti: Arantor - lokakuu 28, 2013, 08:23:04 AP
hight isn't valid, it needs a valid qualifier for size, and forcing something to be 10000px long is a bad move anyway - but yes, overflow:hidden is almost certainly the problem (without even looking)
Otsikko: Re: HTML Page Height
Kirjoitti: Bury043 - lokakuu 28, 2013, 08:28:26 AP
I added that as an attempted fix, i have removed it and the old problem has returned:P
Otsikko: Re: HTML Page Height
Kirjoitti: Arantor - lokakuu 28, 2013, 08:31:08 AP
How exactly did you prepare that html content?

I see tags in there that *really* shouldn't be in there, like an html tag and a body tag.
Otsikko: Re: HTML Page Height
Kirjoitti: Illori - lokakuu 28, 2013, 08:32:49 AP
maybe a div not closed?

<div id="menu" style="background-color:#FFFFFF;height:20px;width:905px;float:center;">
  <h1> Job Rules </h1>
  <div id="menu" style="background-color:#D1D1D1;height:1000px;width:905px;float:center;">
   
Citizen:
    <br>


you should really run your code through a validator
Otsikko: Re: HTML Page Height
Kirjoitti: Bury043 - lokakuu 28, 2013, 08:34:14 AP
I am really novice at coding, this was constructed by me adding bits of code and editing them. I have no real experience coding HTML. Yea, i will do now:P Thanks