Database error when adding Youtube video

Started by Slasher, Thu 22/06/2017 13:05:57

Previous topic - Next topic

Gurok

#20
Khris listed a good workaround in the other thread, but fixing the design properly is a bit involved.

Remove all size=75 declarations from <input> elements in the code. These, combined with the width of the YouTube URL in the left column of the table, are what is pushing the width of the table out.
Add a class to each of the affected <input> elements, something like class="fullWidth".
Add a rule to the stylesheet:
Code: ags
.fullWidth { width: 100% }


If you don't fancy messing with the textboxes, you could fix it with just:
Code: ags
input[type=text][size=75] { width: 100% }

However, this is overriding the bad markup and may negatively affect other pages. It would be better to clean up the markup and apply styles in a modern fashion (as above).

Note: I tested these solutions in Chrome (which exhibited the problem for me) and they worked for me.
[img]http://7d4iqnx.gif;rWRLUuw.gi

AGA

Seems to be fixed now in Chrome for me.  Thanks, Khris and Gurok for your ideas.

I'm currently working on cleaning up the site's backend code.  I'll try to abstract as much of the styling to CSS as I can while I'm at it.

Slasher

#22
Good man AGA (nod)

Now fixed for me in Chrome.

Cheers

SMF spam blocked by CleanTalk