I hope someone can help me cos this is starting to get annoying now :
I have made a site in dreamweaver - the first time in a long time.
On the first page evrything sits just how i want it:
but on later pages the little side bars at the edge of the box don't stretch to fill the space:
its all been put into a table
so is there a way to get the left and right bars to stretch to fit the space thats left
i've tried to physically strech them in dreamweaver - but it doesn't seem to do anything to it at all - which is bizarre ?
if you could help it would be very appreciated ....
Flash Kit Moderator
The problem is that your left / right images are static sizes. (415 px tall to be exact) and you're using an image tag to display them. Your source looks like this:
Using an image tag doesn't lend itself to scalability later on as new content is added. You want to keep the design as flexible as possible. To do that, you need to take out the image tag and apply a background style instead. A background style will set the left / right images as backgrounds for the <TD> elements of the table.
<td rowspan="6"><img src="images/left.jpg" width="22" height="415" /></td>
So, your new source will look like this:
Basically what this does is applies a CSS style to the TD element. It applies the image as a background and then says "only tile this image vertically." I'd suggest cutting the height of the left / right images down to around 10 / 25px. Because the background image tiles, the image can only be a pixel high, and it will still fill in the entire length of the element. Using smaller pieces will also cut down on download time since once the browser downloads it, it caches it and tiles that.
<td rowspan="6" style="width:22px; background-image:url(images/left.jpg); background-repeat:repeat-y;"></td>
thank you so much
and thanks for spelling it out to me aswell
i like to think i can make thing look good but when it comes to coding i don't have a clue - so thank you!
ok so i have another one if any one fancies helping:
i have quite a lot of content in some of my pages and for some reason it moves the cells around on the left hand side - is there a way to keep the navigation in the same place and just extend the central box area ?
also how do you do that thing where when you click on a question it pings down the page to where that question is answered ?
again i am a total beginner at this - coding especially so if you can spell out how to do it it would be good
Flash Kit Moderator
There really isn't any way to do it without starting over. This is why I never use a WYSIWG (What you see is what you get) editor. Learn HTML. It's extremely easy. The hardest part will be the planning stage, but it's so much easier to debug when you're right in there with the source.
The problem your page is having is Dreamweaver encapsulated each hyperlink in a TD table element. Table elements, unless specified to do otherwise, will stretch to maintain a table structure. That's why they're spaced out like that.
If you have built this from the ground up, you could have simply put all the links in a single TD tag and use ROWSPAN, but Dreamweaver spaced them out in different parts of the page. There's no telling what's going on. The page, layout wise, is fairly simple, so I really recommend looking over HTML tutorials at w3schools and starting over.
Thanks for that
Learning html would be ideal - but i kinda need this site up by the end of the week and i'm really not that fast a learner
I seem to have managed to put something to gether that works ish
any ideas how i can do that thing i mentioned aswell about clicking the question and the window moves down to the right part of the page where it is answered ?
Flash Kit Moderator
Sorry, I completely missed that question. To do that you need to use anchors. Anchors are really simple. You use a standard <a> tag, but in the area where the url goes, you put a pound sign: "#" and the name of the anchor.
So, let's pretend you have a question about the cost. The tag would look like this:
The anchor is simply another <a> tag, but with a name property that is the name you supplied above in the calling tag:
<a href="#howmuch">How much does this storage unit cost monthly?</a>
<a name="howmuch">The cost is...</a>
sorry - forget to say thank you very much for the help
it worked a treat
Click Here to Expand Forum to Full Width
Poll by Flashkit.com