473,804 Members | 3,941 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

need help with CSS layout ... see code

Ok,

I did spend tons of time now (as a beginner in css stylecoding) (but making
html pags for many years), to get this right.
But I am overseeing something.

At this link you find a drawing of my wanted layout:

http://img356.imageshack.us/img356/3...hdesignfc1.jpg

description:

-a left column in which I want to put some artwork only (jpg with repeat-y
over the whole heigth of the page!).
-the obvious header
-a MainContent block (in which I now floated my "menu" div and a first
content "cont1" div (- I also tried to take the menu outside the content
block))
-a footer

Whatever I do, I keep getting strange things.
At the moment, for instance, the content and menu texts go through my footer
and go on below it. That is my main problem now.
But some other problems, having to do with absolute and relative positioning
I guess(?), also show up sometimes.

The footer problem, I tried to solve with this concept:
http://www.wddb.com/i_3_A-Footer-at-the-Bottom.html
But somehow, I loose my footer completely than!?!?!

I did go through several internet courses on how to work with css layouts,
but mostly they work with the concept of a fixed width content. And that is
not what I want. I want to desing for 800x600 minimum. And content should be
adapting to larger resolutions/screens.

Maybe you people can have a look below?

thx
Ron

Here is the rough code I use at the moment (sorry for notepad not
structuring this text):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>blabla </title>
<style type="text/css">
<!--
body {
text-align: center;
}
#Wrapper {
text-align: left;
}
#Header {
position:absolu te;
left:7%;
top:0px;
width:93%;
height:100px;
z-index:1;
background-color: #00FF00;
text-align: left;
}
#MainContent {
position:absolu te;
top:102px;
width:93%;
z-index:1;
background-color: #FFFF00;
left: 7%;
text-align: left;
}
#cont1 {
float: left;
width: 70%;
}
#Menu {
top:102px;
width:20%;
z-index:2;
background-color: #00FFFF;
bottom: 102px;
left: 80%;
text-align: left;
float: right;
}
#Footer {
position:absolu te;
left:7%;
width:93%;
height:100px;
z-index:1;
background-color: #FF0000;
bottom: 0px;
}
#LeftPixAchter {
position:absolu te;
left:0px;
width:7%;
z-index:5;
background-color: #FFFFFF;
background-image: url(pix/achter.jpg);
background-repeat: repeat-y;
top: 0px;
height: 100%;
float: left;
}
-->
</style>
</head>
<body>
<div id="Wrapper">

<div id="Header"></div>

<div id="MainContent ">

<div id="Menu">
test<br />
test<br />
</div>

<div id="cont1">
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut
wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper

suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel
eum iriure dolor in hendrerit in vulputate velit esse molestie consequat,
vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et

iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis
dolore te feugait nulla facilisi.</p>
</p>
</div>

</div>

<div id="Footer"></div>
<div id="LeftPixAcht er"></div>

</div>
</div>

</body>
</html>
Jul 6 '08 #1
9 1585
In article <86************ **************@ cache2.tilbu1.n b.home.nl>,
"Ronny" <an*******@disc ussions.microso ft.comwrote:
Ok,

I did spend tons of time now (as a beginner in css stylecoding) (but making
html pags for many years), to get this right.
But I am overseeing something.

At this link you find a drawing of my wanted layout:

http://img356.imageshack.us/img356/3...hdesignfc1.jpg
This the sort of thing you want?

<http://dorayme.890m.co m/alt/ronny.html>

--
dorayme
Jul 7 '08 #2
Hey thx!

Will study your code tonight and try to understand were i did go wrong!
Thx again!

Hans

"dorayme" <do************ @optusnet.com.a uschreef in bericht
news:doraymeRid This-This the sort of thing you want?
>
<http://dorayme.890m.co m/alt/ronny.html>

--
dorayme

Jul 7 '08 #3
Dorayme,

except for the #wrapper you ignore any position declaration.

How is a browser handle it than? Does it standard handle it as 'absolute'?
Or?

thx for your patience!
Jul 7 '08 #4
Hi Dorayme,

I copied your complete code and filled content and menu with text.
If the menulist that I put in menu is longer than the content text, I get
this:

http://img174.imageshack.us/img174/2536/review1vc8.jpg

???
I think something is still wrong in the code.

Question, why is the heigth of menu set to 100%? It should keep the same
height as content?
This the sort of thing you want?

<http://dorayme.890m.co m/alt/ronny.html>

--
dorayme

Jul 7 '08 #5
Floated content left
Floated menu right
Set a width for both
I added a 'clear both' to the footer.

So I believe i did get rid of the problem from the below picture.
http://img174.imageshack.us/img174/2536/review1vc8.jpg
Other suggestions?
Jul 7 '08 #6
In article <60************ **************@ cache2.tilbu1.n b.home.nl>,
"Ronny" <an*******@disc ussions.microso ft.comwrote:
Hi Dorayme,

I copied your complete code and filled content and menu with text.
If the menulist that I put in menu is longer than the content text, I get
this:

http://img174.imageshack.us/img174/2536/review1vc8.jpg

???
I think something is still wrong in the code.

Question, why is the heigth of menu set to 100%? It should keep the same
height as content?
This the sort of thing you want?

<http://dorayme.890m.co m/alt/ronny.html>

It was just some ideas for you to play with that would do you if your
content is a certain way. To get a truly robust template for this sort
of thing that will work cross browser for every combination of menu and
content and footer and left side text and pics etc is a much much more
daunting challenge and for that you might look at such well titled
articles as:

<http://www.alistapart. com/articles/holygrail>

In my experience, for one's own sites, a lot of questions arise only
merely hypothetically. In other words, if you know that your menu items
are five or six list items deep and you are sure to have a decent amount
of text in the content col, that means nothing is wrong *in the
circimstances* with a template that might well break in other
circumstances.

If you said more about the actual site you are making, perhaps we might
make other suggestions.

--
dorayme
Jul 8 '08 #7
dorayme,

I will go over the pagelink you suggested.
For the rest, from your example, I now have a more or less working
'template'.

I am rebuilding my site (personal homepage) from the old HTML coding (with
tables and some basic css) to a css/divs based one. Setting up my page
further will ceratinly reveil more problems. And I will see how I deal with
that. For now I try to make an exact copy of my old index.html to the new
one (just as a practice.... after that I will make more design alterations).
Practice is everything I believe.

My old pages are all written out of the bare head with just notepad and it
would never pass any w3 test. Promise me not to laugh about the code and you
may see it ... ;-)
ww2propaganda.e u

I recently did some help working on a history book. For that I made a
separate part of my homepage with some information. Others pointed out to me
that, although working perfect in IE, it sometimes sucked in safari and
firefox.
If you said more about the actual site you are making, perhaps we might
make other suggestions.

--
dorayme
thx
Jul 8 '08 #8
daunting challenge and for that you might look at such well titled
articles as:

<http://www.alistapart. com/articles/holygrail>
Indeed a good article that might help me a little further..thx
Jul 8 '08 #9
In article <a8************ *************** @cache4.tilbu1. nb.home.nl>,
"Ronny" <an*******@disc ussions.microso ft.comwrote:
Promise me not to laugh about the code and you
may see it ... ;-)
ww2propaganda.e u
I did not laugh at it. I like all that stuff oddly enough... but no time
to examine html/css just now... <g>

--
dorayme
Jul 8 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

61
24513
by: Toby Austin | last post by:
I'm trying to replace <table>s with <div>s as much as possible. However, I can't figure out how to do the following… <table> <tr> <td valign="top" width="100%">some data that will 'stretch'</td> <td valign="top" width="300">some data that won't 'stetch'</td> </tr> </table>
4
1841
by: Matt Stanley | last post by:
I am trying to build a page that scales to fit the browser window regardless of size or resolution. The navigation on the top of the page is framed in dark red/brown using CSS with a background color specified in a custom class tag. I only want those cells that are using this custom class to be 1 pixel wide. In the code I did not specify the <td> width but instead inserted a single-pixel, transparent GIF and specified the dimensions of...
1
3151
by: mydemand | last post by:
Hi all, I'm trying to code a layout in DIVs but I'm running into a fe problems. Here's the screenshot of the layout in Adobe Photoshop : http://blessedbeproductions.com/ftfgscreenshot.jpg (excuse the grittiness) I've managed to code the columns with absolute coding, but I want to d
2
1124
by: Jim H | last post by:
Is there a Wizard class or interfaces available? I need to create a wizard for a feature in my app and I want the standard look and feel of a wizard. You know? Like the placement of the buttons on the bottom etc... If there are not then does anyone know where I can find what the standard layout for a wizard is? Is there a standard layout? Thanks, jim
1
3111
by: cnixuser | last post by:
Hello, I am currently attempting to implement a simple actionlistener for a button in a JFrame that was created via "drag and drop" with the Netbeans 5.0 IDE, the code that I am using to implement the actionlistener should work, and is taken from other functional examples ;however, for some reason the compiler kicks out the following error :/home/vontux/cis435lab1/src/UserInterface.java:103: <identifier> expected btn_roll.addActionListener(...
2
2300
by: Francesco | last post by:
Hi there! I'm trying to organize my sources into a webroot tree like this, webroot index.htm - only contains index.php into a frame index.php - require_once('inc/layout.php') home page1.php - require_once('../inc/layout.php') page2.php - require_once('../inc/layout.php')
2
4139
by: sriniwas | last post by:
Hi Frnd's, m using prefuse visulation,it's have one display class and this class have one saveImage(outPutStream, String jpg,double size);. now graph is converting ia jpg image properly.now my problem is tht,If graph is to large if it going out of screen thn ,i m getting jpg image on screen disply graph,m not getting the image of tht graph which going out of screen. this is my code This is my code
1
1908
crystal2005
by: crystal2005 | last post by:
Hi all, Can anyone tell me why my image doesn't appear in my frame's container? When I change imageIcon to just normal Label, it does go work. In another condition, if i don't use method return (what is it called? emm...). ImageIcon does work on my normal Label. package practise; import java.awt.*;
4
3879
by: Ty | last post by:
Hello all, I am creating a web site with Visual Stuido 2008. I am trying to use a java script file to create a busybox for login from this page http://blogs.crsw.com/mark/articles/642.aspx. I am using a master page senerio. The erro I'm getting is 'busyBox' is not a member of 'ASP.login2_aspx'
3
1144
by: Andy B | last post by:
I am creating a CSS layout and need to test it with different browsers. I have the framework for the layout done with contrasting colors for each section. Can anybody if possible, go to www.test.eternityrecords.org/index2.aspx and look at the design? Tested browsers need to be Safari 3 +, IE5+ including IE8 and Firefox 2+. After you go to the page, send your comments about whether the layout looks good or not and what's wrong with it along...
0
9706
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
10337
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
10323
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
10082
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
7622
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
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5654
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2995
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.