Difference between revisions of "User:Eabrace/Sandbox"
m |
m (→Experiment #5: swapping in different images and adjusting dimensions) |
||
Line 312: | Line 312: | ||
Combining div tags with an HTML table. | Combining div tags with an HTML table. | ||
− | <div style="float:right; width: | + | <div style="float:right; width:550; height:345;" align="center"> |
− | + | [[File:OSI ID background.png]] | |
− | <div align="center" style="width: | + | <div align="center" style="width:550; height:345; margin-top:-355px;"> |
− | <TABLE WIDTH= | + | <TABLE WIDTH=525 HEIGHT=320> |
<TR> | <TR> | ||
<TD> | <TD> | ||
Line 322: | Line 322: | ||
<TD HEIGHT=160 WIDTH=160> | <TD HEIGHT=160 WIDTH=160> | ||
<div align="center"> | <div align="center"> | ||
− | + | [[File:B Samson ID 01.jpg|160x160px]] | |
</div> | </div> | ||
</TD> | </TD> | ||
Line 349: | Line 349: | ||
[[File:Badge task force HonoraryPeacebringer.png|25px]][[File:Badge council robot.png|25px]][[File:Badge croatoa cabalist.png|25px]][[File:Badge temporal strife.png|25px]][[File:Badge task force PSmasher.png|25px]][[File:Badge task force DestroyerOfStrength.png|25px]][[File:Badge task force ProtectorOfKindness.png|25px]][[File:Badge task force SlayerOfMadness.png|25px]][[File:Badge task force apocalyptic.png|25px]][[File:Badge defeatrecluse.png|25px]][[File:Badge task force master statesman.png|25px]]<br /> | [[File:Badge task force HonoraryPeacebringer.png|25px]][[File:Badge council robot.png|25px]][[File:Badge croatoa cabalist.png|25px]][[File:Badge temporal strife.png|25px]][[File:Badge task force PSmasher.png|25px]][[File:Badge task force DestroyerOfStrength.png|25px]][[File:Badge task force ProtectorOfKindness.png|25px]][[File:Badge task force SlayerOfMadness.png|25px]][[File:Badge task force apocalyptic.png|25px]][[File:Badge defeatrecluse.png|25px]][[File:Badge task force master statesman.png|25px]]<br /> | ||
[[File:Badge trial zone 01.png|25px]][[File:Badge trial zone 01.png|25px]][[File:Badge trial zone 01.png|25px]]<br /> | [[File:Badge trial zone 01.png|25px]][[File:Badge trial zone 01.png|25px]][[File:Badge trial zone 01.png|25px]]<br /> | ||
− | [[File:OSI Donovan Medallion.png| | + | [[File:OSI Donovan Medallion.png|50x25px]] |
</div> | </div> | ||
</TD> | </TD> |
Revision as of 05:33, 11 June 2009
Contents
Experiments
Experiment #1
Question:
Can a wikitable be created with a background image?
CSS for background images:
background-image:url('<image>')
Test image:
Test table code:
{| style="width:75%; height:200px; background-image:url('http://img.photobucket.com/albums/v623/cohosi/badges/OSI_ID.jpg')" border="1" |- |Test |}
Test table:
Test |
Test table code (without background image specification):
{| style="width:75%; height:200px" border="1" |- |Test |}
Test table:
Test |
Suggestion from Titan forums
<table style="background: url(http://img.photobucket.com/albums/v623/cohosi/badges/OSI_ID.jpg) center center no-repeat transparent;width:450px;height:320px;border: solid 1px #000000;border-collapse: collapse;"> <tr> <td>sd54f6s5df4 s5df4s6d5f4<br /><br /><br /><br />S4d6f5</td> </tr> </table>
sd54f6s5df4
s5df4s6d5f4 S4d6f5 |
Removing background image from code:
<table style=";width:450px;height:320px;border: solid 1px #000000;border-collapse: collapse;"> <tr> <td>sd54f6s5df4 s5df4s6d5f4<br /><br /><br /><br />S4d6f5</td> </tr> </table>
sd54f6s5df4
s5df4s6d5f4 S4d6f5 |
Conclusion:
It would appear that wikitables do not allow background images. Either that or this just isn't the right way to make it work. Based on the loss of size formatting in the first table, it would seem that inserting the background image specification invalidates the entire style spec.
Further reading from outside sources indicates that MediaWiki invalidates style tags with "url" components.
Experiment #2
Using an HTML table with wiki images.
|
||
|
Experiment #3
Line spacing between badge rows using CSS font-size and line-height properties.
Experiment #4
Using Div tags to create an overlay.
The upper half of the content (character image and info) are disappearing. It appears that they are being slid behind the background image instead of appearing on top of it.
In fact, if I substitute in a different image:
It's more obvious who's obscuring who.
This probably isn't helping, though:
Those two sections should be bound within a 375 pixel container. Instead, they are being forced to the outer right and left margins.
Floating the entire container to the right:
The left side should be 160 pixels wide with the image centered. The image is 86 pixels wide, which should leave 74 pixels for margin, 37 on each side. Instead, the image is pressing right up against the right side content.
Adding the badge icons on the bottom provides an anchor for the margins of the container, but shouldn't be required as the width is already specified in the container's definition.
Very frustrating. Time to take a break.
Experiment #5
Combining div tags with an HTML table.