473,654 Members | 3,084 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

3 column layout - whitespace and repeat problem

25 New Member
hi there, i'm pretty inexperienced with CSS, so apologies for the shoddy coding. i'm trying to set a 3 column layout using different background images for each column. however, i have whitespace at the top and sides of the page, which i really want to get rid of. i've used nested divs to create the layout so hopefully i've set these up properly.

the other problem i am having is that i want the images to repeat vertically to 100% of the page size, but this wouldn't happen when i specified either height:100%; or background-repeat:repeat y (which did nothing, even though repeat x will tile if change the code). as a very temporary fix i've specified height:800px; which allows the images to tile vertically as i wanted. Any help would be great.

the html....
Expand|Select|Wrap|Line Numbers
  1. <body>
  2. <div id="mainwrap">
  3. <div id="contentarea">
  4. <div id="contentarea2">
  5. <div id="column1">
  6. </div>
  7. <div id="column2">
  8. <div id="header">
  9. <img src = "antonine_logo_rev.png" alt="Logo" id="logo" height="120" width="210">
  10. <h1>ANTONINE SPORTS CENTRE</h1>
  11. </div> 
  12. </div>
  13. <div id="column3">
  14. </div>
  15. </div>
  16. </div>
  17. </div>
  18. </body>
  19.  
and the CSS

Expand|Select|Wrap|Line Numbers
  1. #mainwrap{
  2. margin:1px;
  3. background: url(new_background/background_middle.jpg) repeat;
  4. }
  5.  
  6.  
  7. #contentarea{
  8. margin:1px;
  9. background: url(new_background/border_left.jpg) repeat-y top left;
  10. position:relative;
  11. }
  12.  
  13. #contentarea2{
  14. margin:1px;
  15. background: url(new_background/border_right.jpg) repeat-y top right;
  16. height:800px;
  17. position:relative;
  18. }
  19.  
  20. #column1{
  21. position:absolute;
  22. top:0px;
  23. left:0px;
  24. width:150px;
  25. }
  26.  
  27. #column2{
  28. position:absolute;
  29. top:0px;
  30. margin-left:250px;
  31. margin-right:250px;
  32.  
  33. }
  34.  
  35. #column3{
  36. position:absolute;
  37. top:0px;
  38. right:0px;
  39. width:150px;
  40. }
  41.  
  42. #header {
  43. background: url(antonine_logo_rev3.png) no repeat top left;
  44.     padding-top: 40px;
Aug 3 '07 #1
1 2015
drhowarddrfine
7,435 Recognized Expert Expert
These links from Paul may help:
link1
link2
Aug 3 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
1688
by: slim | last post by:
hi all, following on from an earlier thread i posted about padding problems, i am now facing a different problem: the left hand column does not seem to want to reach the foot of the page in either ie6 or opera7.1. http://www.awash.demon.co.uk/vd/index.html
1
3296
by: RJ | last post by:
Hello! I am trying to lay out a left navigation column with a background image, where the left nav column runs the entire scrolled height/length of the page. The float:left column layout works fine, but the background image doesn't continue downward in this column below the links. I tried this in FireFox 1.0.7 and IE6, but this image stops where the last link stops. I want the background all the way to the bottom. How can I force...
10
9197
by: Luke | last post by:
Hi. I am trying to make correct layout, here is an example of (dynamically generated content via jsp): http://localhost/www/layout.htm Most outer div is positioned absolute (if not then it will not grow when content inside div.body is greater than width of window of user agent), anyway anyone knowlegable can see it in sources...
16
3024
by: Jef Driesen | last post by:
I have created a nice idea for a website and now I would like to translate that idea in (x)html and css. The layout is quite basic: a header, two columns and a footer. For a graphical presentation, see http://users.telenet.be/sacn/tmp/layout.png. I would like to have: * source ordered columns: header, content, sidebar, footer * fixed width columns (either px or em units). Because I don't like reading very long lines and IE does not...
2
2062
by: Edward | last post by:
I'm pursuing the holy grail of creating a two-column CSS layout with footer AND where the colors of the columns actually go all the way down. The code is below. Here is a graphic of how it looks in each IE and FIREFOX: http://www.tanguay.info/web/examples/twoColumnWithFooterFirefoxIeProblem.png Does anyone have any idea what I might try to get both IE and FIREFOX
31
3088
by: Sarita | last post by:
Hello, this might sound stupid, but I got a really nice homepage template which unfortunately is a 3-Column Fixed Width CSS format. Now I don't have any content for the right column and would like the middle column just to use up that space instead. Any way this is possible? Thanks for your help, it is highly appreciated!
26
2586
by: mark | last post by:
The idea of this is very simle. The site is 800px wide and sits in the middle of the browser window, on either side of the site I want a different background image aligned against it. If I were doing this with table based layout the code would be as follows: <head> <style type="text/css"> #bgleft { background: url(left_half_circle.gif) right top repeat-y;
3
3528
by: Rich.Hephner | last post by:
Hi, I'm new to this group, but in need of some help with a css based two column layout. The layout consists of a short left nav and a content section. The problem is that in IE, the content is shifted approx. 2 pixels to the right where the left nav floats next to it. This shouldn't be and isn't in FF.
5
1895
by: creative1 | last post by:
hi everyone, I am struck in layout of my site. Im using 1024 fixed width layout. I have a site layout designed in psd files. Bisically I have to stick with that design tightly and I am asked not to chnage even a pixel. As I am not too good so I though why not ask you. I am using dreameweaver for my ease in design. The problem is "expanding box problem and cruel appearance in IE and site looks better in FFox". I am not usinf any image bigger...
0
8376
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8708
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8489
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8594
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1596
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.