WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-20-2005, 04:46 AM
souvik das souvik das is offline
WebProWorld Member
 

Join Date: Dec 2004
Location: Calcutta
Posts: 70
souvik das RepRank 0
Default making website 100%

I have made a site, there in the header part just logo & login part exists.In between two parts the whole area is empty. Now I want to add some graphics in side that empty part.
The site is 100%.How is it possible to keep that graphics as it is in 1024 & 800*600 resolution??

The site is www.visitlab.com

Plz suggest me.
Thanks-------
__________________
I want to know about how to design the search engine friendly websites with attractive graphics.
Reply With Quote
  #2 (permalink)  
Old 07-20-2005, 08:34 AM
MuNKyonline's Avatar
MuNKyonline MuNKyonline is offline
WebProWorld Veteran
 

Join Date: Jun 2004
Location: Suffolk, England
Posts: 712
MuNKyonline RepRank 1
Default

Dont really understand what you mean. I can see the white space. Putting the site in a table with a fixed width will stop it changing size. If you did that then you would want to make it about 750ish pixels wide so it's optimised for 800x600.
__________________
Darren Lovelock
Munky Online | Suffolk Web Design | SEO Services | Remove Adware & Spyware
Reply With Quote
  #3 (permalink)  
Old 07-20-2005, 10:04 AM
ADAM Web Design's Avatar
ADAM Web Design ADAM Web Design is offline
WebProWorld 1,000+ Club
 

Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,217
ADAM Web Design RepRank 0
Default

You mean like this?

http://www.kastlefireplace.com
http://216.89.218.233/spp

Make a tiled background image and have it repeat. That's the only consistent way I've seen to do this.

It's real easy in CSS. Give your table or div a unique ID attribute (e.g. "top") and put the following into your CSS stylesheet:

#top {
width: 100%;
height: (height of your image);
overflow: hidden; ?* this keeps the background from repeating funny */
background: URL(images/your_background_file.jpg) top left repeat-x;
}

And away you go.
Reply With Quote
  #4 (permalink)  
Old 07-20-2005, 11:32 AM
MuNKyonline's Avatar
MuNKyonline MuNKyonline is offline
WebProWorld Veteran
 

Join Date: Jun 2004
Location: Suffolk, England
Posts: 712
MuNKyonline RepRank 1
Default

You can do that with html too and just have one of the table cells repeat the image as a background.
__________________
Darren Lovelock
Munky Online | Suffolk Web Design | SEO Services | Remove Adware & Spyware
Reply With Quote
  #5 (permalink)  
Old 07-20-2005, 08:31 PM
DrTandem1's Avatar
DrTandem1 DrTandem1 is offline
WebProWorld 1,000+ Club
 

Join Date: Oct 2003
Location: Encinitas, CA
Posts: 1,908
DrTandem1 RepRank 2
Default

You're stacking your tables on top of each other. Create a table and nest the other table(s) within it. You can then control table cells better and your layout as well.
__________________
DrTandem's San Diego Web Page Design, drtandem.com
Reply With Quote
  #6 (permalink)  
Old 07-21-2005, 03:34 PM
slideri812's Avatar
slideri812 slideri812 is offline
WebProWorld Pro
 

Join Date: Nov 2004
Location: Prattville, Alabama US
Posts: 124
slideri812 RepRank 0
Default

Hi,

I see waht your asking. I use a combonation of tables and CSS to create this type of effect.

Like Dr said. Create a table in your header (left cell) and name it with an id. Then break it up into two cells (give these classes). Place your logo in the left most cell. Place your other main graphic in the right cell. You need to decide if your repeating bg image works on both sides of your main graphic or not.

If it will then center your main graphic. If not align left or right. Then the table will float out to the right and fit any screen size.

Use the css to apply the repeating bg to the table or cell as need for your purposes.

FYI:
I would create a graphic that is fully visible for the space available when viewed at 800. Then the repeating bg picks up all the slack for larger viewing areas.

good luck, you have a great looking start.
__________________
Every journey begins with the fisrt step.

We're not just building websites…
We're building relationships!

Visit us www.dcvistudios.com
Reply With Quote
  #7 (permalink)  
Old 07-21-2005, 03:43 PM
ChrisRC ChrisRC is offline
WebProWorld Pro
 

Join Date: Mar 2004
Location: Pittsburgh, PA, USA
Posts: 114
ChrisRC RepRank 0
Default

Quote:
Originally Posted by DrTandem1
You're stacking your tables on top of each other. Create a table and nest the other table(s) within it. You can then control table cells better and your layout as well.
I'm curious: what advantage do you see in nesting the tables on this page? I get the disadvantages inherent in nested tables, and I know there are times when it helps, but I don't see a reason to do it here.



(See how I'm not even mentioning the fact that tables aren't meant for layout? I think I've grown.)
__________________
Chris Collins
crcdesign.net
Reply With Quote
  #8 (permalink)  
Old 07-21-2005, 03:51 PM
DrTandem1's Avatar
DrTandem1 DrTandem1 is offline
WebProWorld 1,000+ Club
 

Join Date: Oct 2003
Location: Encinitas, CA
Posts: 1,908
DrTandem1 RepRank 2
Default

Quote:
Originally Posted by ChrisRC
Quote:
Originally Posted by DrTandem1
You're stacking your tables on top of each other. Create a table and nest the other table(s) within it. You can then control table cells better and your layout as well.
I'm curious: what advantage do you see in nesting the tables on this page? I get the disadvantages inherent in nested tables, and I know there are times when it helps, but I don't see a reason to do it here.



(See how I'm not even mentioning the fact that tables aren't meant for layout? I think I've grown.)
No, he doesn't need to nest the tables, however, he is asking how to add an image to the "open" space on the page. This suggests to be that he doesn't fully grasp how tables work. I think, if he tried nesting them to confine their widths to a main table, he would understand the concept of cells better. Thus, he would be able to design a layout. Make sense?
__________________
DrTandem's San Diego Web Page Design, drtandem.com
Reply With Quote
  #9 (permalink)  
Old 07-21-2005, 05:31 PM
ChrisRC ChrisRC is offline
WebProWorld Pro
 

Join Date: Mar 2004
Location: Pittsburgh, PA, USA
Posts: 114
ChrisRC RepRank 0
Default

Quote:
Originally Posted by DrTandem1
Quote:
Originally Posted by ChrisRC
Quote:
Originally Posted by DrTandem1
You're stacking your tables on top of each other. Create a table and nest the other table(s) within it. You can then control table cells better and your layout as well.
I'm curious: what advantage do you see in nesting the tables on this page?
No, he doesn't need to nest the tables, however, he is asking how to add an image to the "open" space on the page. This suggests to be that he doesn't fully grasp how tables work. I think, if he tried nesting them to confine their widths to a main table, he would understand the concept of cells better. Thus, he would be able to design a layout. Make sense?
But, apparently he doesn't want to confine the widths or I imagine he would have set the individual tables to a width other than 100% - which would be simpler than adding a container table, faster loading, and just as effective.
Reply With Quote
  #10 (permalink)  
Old 07-21-2005, 07:12 PM
DrTandem1's Avatar
DrTandem1 DrTandem1 is offline
WebProWorld 1,000+ Club
 

Join Date: Oct 2003
Location: Encinitas, CA
Posts: 1,908
DrTandem1 RepRank 2
Default

Quote:
Originally Posted by ChrisRC
Quote:
Originally Posted by DrTandem1
Quote:
Originally Posted by ChrisRC
Quote:
Originally Posted by DrTandem1
You're stacking your tables on top of each other. Create a table and nest the other table(s) within it. You can then control table cells better and your layout as well.
I'm curious: what advantage do you see in nesting the tables on this page?
No, he doesn't need to nest the tables, however, he is asking how to add an image to the "open" space on the page. This suggests to be that he doesn't fully grasp how tables work. I think, if he tried nesting them to confine their widths to a main table, he would understand the concept of cells better. Thus, he would be able to design a layout. Make sense?
But, apparently he doesn't want to confine the widths or I imagine he would have set the individual tables to a width other than 100% - which would be simpler than adding a container table, faster loading, and just as effective.
Well, his question is somewhat vague, but he seems to confuse the 100% with the resolution. So, that's another point that was made by someone in an earlier post to have him set the width to about 750 pixels.

I think he should probably just start out with one table at a fixed width and add cells and rows to it. this will allow him to grasp the concept of column spans.

The problem he is experiencing is that he is just adding table after table for each portion and he is trying to add two or more tables side-by-side. If he wants to do that, he needs to nest them or simply use a single table and manipulate the rows, columns and cells.
__________________
DrTandem's San Diego Web Page Design, drtandem.com
Reply With Quote
  #11 (permalink)  
Old 07-21-2005, 08:36 PM
ChrisRC ChrisRC is offline
WebProWorld Pro
 

Join Date: Mar 2004
Location: Pittsburgh, PA, USA
Posts: 114
ChrisRC RepRank 0
Default

Quote:
Originally Posted by DrTandem1
Quote:
Originally Posted by ChrisRC
But, apparently he doesn't want to confine the widths or I imagine he would have set the individual tables to a width other than 100% - which would be simpler than adding a container table, faster loading, and just as effective.
Well, his question is somewhat vague
Hey, this we agree on:)

Quote:
but he seems to confuse the 100% with the resolution.
No, that I think I get. Because he has the site set to display at 100% width, people browsing with their window opened wider will see a bigger "empty part" in the cell containing the logo. Of course people with higher resolution have the potential to open thier client windows wider. NOTE: This isn't a bug, as they say, it's a feature. It gives the person using the site more control over how they use it. I'm just not clear on what exactly he wants to do in that empty part.



Quote:
I think he should probably just start out with one table at a fixed width and add cells and rows to it. this will allow him to grasp the concept of column spans.
He's using rowspan - I don't see any reason to assume he doesn't grasp colspan. Using a fixed layout does avoid the complications of using a liquid layout - but it also sacrifices the advantages.

Quote:
The problem he is experiencing is that he is just adding table after table for each portion and he is trying to add two or more tables side-by-side.
I think that's where you're losing me. I don't see where you get that idea.
Reply With Quote
  #12 (permalink)  
Old 07-21-2005, 09:42 PM
slideri812's Avatar
slideri812 slideri812 is offline
WebProWorld Pro
 

Join Date: Nov 2004
Location: Prattville, Alabama US
Posts: 124
slideri812 RepRank 0
Default

Yeah,

I only suggested the nested table as a way to add a secondary bg option. Not to mention that the logo graphic is not full height for the cell and thus using a single bg image to match a center piece graphic placed in the same cell could have unexpected and undesired results.

For a single bg adding the cell and placing the bg image there via CSS and adding the image in the cell should do it. Simple as that.

To get the center cell to float out set it 100% and give the left most cell a defined width (i.e. 200px or 10% via CSS)

If you'll notice, in the head mask area there is live text next to the logo in the same cell.

Another option is to create a bg image that includes the center piece offset so that when placed as a bg image it clears the logo and or text if needed. If you make the image say 1300 px wide the overage will be hidden like any other bg image. No need to to "hide" the run over. Also there is no need to adjust the current layout configuration. This is a good time to use a .png file except that IE doesn't support them so I use a .jpg.
__________________
Every journey begins with the fisrt step.

We're not just building websites…
We're building relationships!

Visit us www.dcvistudios.com
Reply With Quote
  #13 (permalink)  
Old 07-21-2005, 10:42 PM
brian.mark's Avatar
brian.mark brian.mark is offline
Administrator
 

Join Date: Jul 2004
Location: Omaha
Posts: 2,717
brian.mark RepRank 2brian.mark RepRank 2
Default That's just great until...

Quote:
Originally Posted by slideri812
...If you make the image say 1300 px wide the overage will be hidden like any other bg image...
That works just fine until someone at 1600x1200 comes along, or 3840x1024 like we see at our site on a regular basis. It really needs to repeat or you can't say it'll work for everyone.

Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies
Reply With Quote
  #14 (permalink)  
Old 07-21-2005, 10:58 PM
DrTandem1's Avatar
DrTandem1 DrTandem1 is offline
WebProWorld 1,000+ Club
 

Join Date: Oct 2003
Location: Encinitas, CA
Posts: 1,908
DrTandem1 RepRank 2
Default Re: That's just great until...

Quote:
Originally Posted by brian.mark
Quote:
Originally Posted by slideri812
...If you make the image say 1300 px wide the overage will be hidden like any other bg image...
That works just fine until someone at 1600x1200 comes along, or 3840x1024 like we see at our site on a regular basis. It really needs to repeat or you can't say it'll work for everyone.

Brian.
The percentage of visitors using something other than 800x600 and 1024x768 is insignificant

The point I'm trying to make is that the original question Souvik Sas asked was how to put a graphic in the "empty part." The reason he is having trouble is he doesn't seem to realize that the graphic needs to be a part of one of the existing tables. He is attempting to align a graphic image to the left of one of the tables.
__________________
DrTandem's San Diego Web Page Design, drtandem.com
Reply With Quote
  #15 (permalink)  
Old 07-22-2005, 07:17 AM
ChrisRC ChrisRC is offline
WebProWorld Pro
 

Join Date: Mar 2004
Location: Pittsburgh, PA, USA
Posts: 114
ChrisRC RepRank 0
Default Re: That's just great until...

Quote:
Originally Posted by brian.mark
3840x1024 like we see at our site on a regular basis.
I'm curious, are you actually checking innerWidth/clientwidth to see if they have the browser maximized at that resolution? I know there are some people who do that - but even on my "little" 21" 1024x768 display, I can't imagine doing it myself.

Quote:
Originally Posted by DrTandem1
the original question Souvik Sas asked was how to put a graphic in the "empty part." The reason he is having trouble is he doesn't seem to realize that the graphic needs to be a part of one of the existing tables.
I think I'm going to go with, "Souvik Sas could you please revisit your thread to clarify?" I read "empty part" as the visually empty part of the cell containing the logo or maybe an additional cell between the logo and the form, not somwhere to float something to the left of the table.
Reply With Quote
  #16 (permalink)  
Old 07-22-2005, 08:20 AM
slideri812's Avatar
slideri812 slideri812 is offline
WebProWorld Pro
 

Join Date: Nov 2004
Location: Prattville, Alabama US
Posts: 124
slideri812 RepRank 0
Default

Quote:
brian.mark wrote:
That works just fine until someone at 1600x1200 comes along, or 3840x1024 like we see at our site on a regular basis. It really needs to repeat or you can't say it'll work for everyone.
A graphic artist worth their salt should have no trouble creating a 1300 px graphic that can repeat seamlessly if needed. Mute point.
__________________
Every journey begins with the fisrt step.

We're not just building websites…
We're building relationships!

Visit us www.dcvistudios.com
Reply With Quote
  #17 (permalink)  
Old 07-22-2005, 09:37 AM
ADAM Web Design's Avatar
ADAM Web Design ADAM Web Design is offline
WebProWorld 1,000+ Club
 

Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,217
ADAM Web Design RepRank 0
Default

Quote:
Originally Posted by slideri812
Another option is to create a bg image that includes the center piece offset so that when placed as a bg image it clears the logo and or text if needed. If you make the image say 1300 px wide the overage will be hidden like any other bg image. No need to to "hide" the run over. Also there is no need to adjust the current layout configuration. This is a good time to use a .png file except that IE doesn't support them so I use a .jpg.
That's not accurate. IE will support a PNG background if there's no transparency. And there are cases where doing so is more advantageous from a file size standpoint than a JPG, but this really depends on the situation.

Also, there is a proprietary filter you can use to get PNGs to display alpha transparency in IE. It's obviously not the ideal situation, but it does work and you can still code something that will work for FireFox too.
Reply With Quote
  #18 (permalink)  
Old 07-24-2005, 01:14 AM
slideri812's Avatar
slideri812 slideri812 is offline
WebProWorld Pro
 

Join Date: Nov 2004
Location: Prattville, Alabama US
Posts: 124