Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting rid of scroll bar and link to open new window

Status
Not open for further replies.
Mar 11, 2004
127
GB
Hi, I am starting my first website, and I have been using Dreamweaver MX to create it.

I have got the site as I want it, apart from a horizontal scrollbar that I cannot get rid of. Is there a piece of code that I need to remove/insert to stop this from happeneing?

Also I have links to pictures that open in a new window. This is all fine, except I want the new window to open to the same size as the picture, without having to manually resize the new IE window.

Hope this makes sense. Thanks for any help offered.

Ant
 
a) to get rid of scrollbars, you'll either have to make sure the content within the website is within the bounds of the screen (remember that different users have different resolutions), or use javascript to open your window from a main window. Using JS will allow you to hide the scrollbars in the new popup window.

b) Again, you'll need javascript to do this. There are a few different ways, so if you have a code snippet we'd be able to help better.

*cLFlaVA
----------------------------
"Holy crip he's a crapple!
 

You should be able to hide scrollbars using CSS without any JS:

Code:
<style type="text/css">
body {
   overflow: hidden;
}
</style>

Of course, if the window shrinks below the size of the content, don't expect the scrollbars to appear!

Hope this helps,
Dan
 
Ahh, nice Dan -

i'm stuck in the js mindset right now.

*cLFlaVA
----------------------------
"Holy crip he's a crapple!
 
Thanks guys I shall give that a go.

I have created the site is 800x XXX res so if they are running smaller than that they dont deserve to see the site lol.

I've created it on a 21" monitor running high res and I still get the horizontal scrollbar,

I'll report back with my results.

Thanks,
Ant
 
I've just tried that scripts and it hasn't worked. Any other suggestions?

Many thanks
Ant
 
do you have a url or some code?

*cLFlaVA
----------------------------
"Holy crip he's a crapple!
 

OK - I guess your site was down temporarily... It's working fine after 10 mins.

Your frameset definitions (both of them) are messed up. You cannot have both ROWS and COLS in the same frameset tag, and both of yours have both. You are also missing a comma in your COLS definition.

Hope this helps,
Dan
 
Ok, I think I see what you mean:

I have:

colspan="5" rowspan="4"

And I shouldn't. What should it be? I am a complete novice at this. Also, where should this comma be in the COLS definition?

Thanks very much for your help it is very much appreciated.

Ant
 

Not your TABLEs - your FRAMESETs. You have:

Code:
<frameset rows="164,*" cols="948*" frameborder="NO" border="0" framespacing="0">
  <frame src="Frames/Index/Title%20Frame.html" name="topFrame" scrolling="NO" noresize >
  <frameset rows="*" cols="120,*" framespacing="0" frameborder="NO" border="0">

You should not have both COLS and ROWS for a frameset - and you have both for both of yours.

As you can see, the first "cols" definition has no comma in it, either.

Dan

 
??? I cant find that when I do view source.

I will wait till I get home though and have a look in the code in DW.

So my guess would be I need to delete the cols="948*" from that section? Is that right??

Thanks
 

So my guess would be I need to delete the cols="948*" from that section? Is that right??

If you want to have a single frame across the top, and two frames side-by-side below that, then you would probably delete the COLS from the first frameset, and the ROWS from the second.

Try playing around with it and see what happens. Experiment a bit.

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top