coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: djriknet1 on January 18, 2007, 02:17:25 PM

Title: table width
Post by: djriknet1 on January 18, 2007, 02:17:25 PM
Dear All,

i'm rebuilding a theme so i can use it with my own design,

in this design, i put the gallery in a table and in a cell before the gallery i put the dtree script (search on dtree in this forum)

the code in the template.html looks like this:

<table width="0*" border="0" align="left">
  <tr>
<td valign="top" align="left" width="200">
<div id="content" width="200">
<link
rel="StyleSheet" href="dtree.css" type="text/css" />
<script type="text/javascript" src="dtree.js"></script>
<script type="text/javascript" src="dtree.php"></script>
</div>
</td>
    <td valign="top" align="left">
<div id="content">
            <div class="entry">
               {GALLERY}
            </div>

</td>
  </tr>
  <tr>
    <td>{LANGUAGE_SELECT_FLAGS} <br />
            {LANGUAGE_SELECT_LIST}{THEME_SELECT_LIST}</td>
    <td></td>
  </tr>
</table>


if you go to http://tropicalview.net/gallery/index.php?theme=andreas09 (http://tropicalview.net/gallery/index.php?theme=andreas09)
for some reason i cannot get all the content aligned to the left

does somebody know what i'm doing wrong?
Title: Re: table width
Post by: Gizmo on January 18, 2007, 02:54:10 PM
The gallery alignment is doing exactly as you have it in the code. You need to add a new row for the gallery something like this:

</div>
</td>
</tr>
<tr>
    <td valign="top" align="left">
<div id="content">
Title: Re: table width
Post by: djriknet1 on January 18, 2007, 03:15:12 PM
Hi Gizmo,

Thanks for your answer, but if i do so the dtree will be on top of the gallery,
I just like it next to it (left)

How can i do that and get ride of all the blank space the html put in there right now?

Greetings

Hendrik
Title: Re: table width
Post by: Gizmo on January 19, 2007, 02:11:36 AM
You're setting some rather large <table> and <td> widths. In this line
<div id="content" width="200">
you have a width set but there's also a min-width: 460px in the content css style. Remove the width="200" and fix the margin and min-width in the css.
Title: Re: table width
Post by: djriknet1 on January 19, 2007, 06:54:08 AM
Hi Grimzo,

Thanks for the great tip, you put me on the right track to solve the problem i think.

but still the problem is not yet solved, i changed the content id tag to content-left
and copied the whole tag in the ccs with a min-width of 200

i took off the width tags in the table, but still the same thing.


i searched some more and i think the problem is in this part:
template.html:
<!-- http://www.cssplay.co.uk/boxes/width2.html -->
<div class="width">
<div class="minwidth">
<div class="holder">
<!-- End IE wrapper -->



i tried a lot, but style sheets are new stuff for me, and still i do not understand everything (you can see that, i even didn't thaugt about looking in there)

Untill now i did not find any value that causes this problem, if you have the change, can you please take a look into it?
i will attach a zip file of the theme
If you want access to the server, i can pm you ftp information .

Greetings

Hendrik

PS. do you guys have a donation place? the way the support goes is realy worth to give at least something back..