Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
3bigissues i need to know
Old 02-11-2008, 08:45 PM 3bigissues i need to know
andyp's Avatar
Extreme Talker

Posts: 165
Name: andy patterson
Trades: 0
problem no.1: how do i make a website header div to stretch the entire width of the browser window. e.g look at webmaster-talks header.

problem no.2: if you take a look at http://ap-gfx.com/joomla , I have a leftcolumn class and a rightcolumn class. now I'm making a 4 column layout and i thought if i just arrange the in order it would work but it doesnt. It only works for the leftcolumn class. my source is ap-gfx.com/joomla/template/themes/default/index.tpl
I may not have been clear, look again at the site and on the right the word far right is closer to the center than just right, but i had arranged them so it was the other way round.

problem no.3: why doesnt W3C develop their own web browser and have OS's distribute them for free or even just have a W3C layout engine?
__________________
My webmaster news & tips blogs with free scripts and tutorials -
Please login or register to view this content. Registration is FREE
andyp is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-11-2008, 09:22 PM Re: 3bigissues i need to know
Webmaster Talker

Posts: 626
Trades: 0
Answer #1: set the width of the DIV to 100%

Answer #2: I don't understand what you mean.

Answer #3: Why re-invent the wheel?
jim.thornton is offline
Reply With Quote
View Public Profile
 
Old 02-12-2008, 03:15 AM Re: 3bigissues i need to know
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
#3 Amaya
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-12-2008, 03:16 AM Re: 3bigissues i need to know
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
  1. Remove left and right margin and padding from the body. The div will automatically expand/collapse.
  2. Sample code:
    Code:
    .block, .end-block{
    float: left;
    margin-right: 20px;
    width: 200px;
    }
    .end-block{
    margin-right: 0;
    }
    HTML Code:
    <div class="block"><p>Stuff here</p></div>
    <div class="block"><p>Stuff here</p></div>
    <div class="block"><p>Stuff here</p></div>
    <div class="end-block"><p>Stuff here</p></div>
  3. The W3C are developing their own browser. It's called Amaya (I hate it personally).
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.

Last edited by Mooofasa; 02-12-2008 at 03:22 AM..
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 02-12-2008, 07:58 AM Re: 3bigissues i need to know
andyp's Avatar
Extreme Talker

Posts: 165
Name: andy patterson
Trades: 0
I thought i never explained it right. in ap-gfx.com/joomla/index.php you will notice i have 2 boxes within a wrapper div. these two boxes are each held in a column div the column div used is;
HTML Code:
.leftcolumn
{
 width: auto;
 height: auto;
 float: left;
}
so these two columns are placed side by side. but when i try to do it with the two right columns it doesnt work.

HTML Code:
.rightcolumn
{
 width: auto;
 height: auto;
 float: right;
}
look at my html source and youll see that the text in the doc should be the other way round .
__________________
My webmaster news & tips blogs with free scripts and tutorials -
Please login or register to view this content. Registration is FREE
andyp is offline
Reply With Quote
View Public Profile
 
Old 02-12-2008, 08:39 AM Re: 3bigissues i need to know
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
You need to specify the width. Height: auto is needless.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 02-12-2008, 11:17 AM Re: 3bigissues i need to know
andyp's Avatar
Extreme Talker

Posts: 165
Name: andy patterson
Trades: 0
it still hasnt solved my problem. if i need to explain it again i can
__________________
My webmaster news & tips blogs with free scripts and tutorials -
Please login or register to view this content. Registration is FREE
andyp is offline
Reply With Quote
View Public Profile
 
Old 02-12-2008, 01:51 PM Re: 3bigissues i need to know
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
If you could make a graphical representation of what you mean, it would be nice. I need diagrams and labels and the whole shebang to work out the smallest of problems. Possibly why the Bible never worked for me.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 02-12-2008, 11:26 PM Re: 3bigissues i need to know
Webmaster Talker

Posts: 626
Trades: 0
I believe this is what you are looking for:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <title></title>
<style type="text/css">
#container {
     width: 1000px;
	 height: 800px;
	 background-color: blue;
}

#col1 {
     width: 15%;
	 height: 800px;
	 background-color: red;
	 float: left;
}

#col2 {
     width: 35%;
	 height: 800px;
	 background-color: yellow;
	 float: left;
}

#col3 {
     width: 35%;
	 height: 800px;
	 background-color: green;
	 float: left;
}

#col4 {
     width: 15%;
	 height: 800px;
	 background-color: white
	 float: left;
}

#footer {
     width: 100%;
	 clear: both;
	 height: 100px;
}

</style>
</head>
<body>
<div id="container">
<div id="col1">&nbsp;</div>
<div id="col2">&nbsp;</div>
<div id="col3">&nbsp;</div>
<div id="col4">&nbsp;</div>
<div id="footer">&nbsp;</div>
</div>
</body>
</html>
You will have to adjust it to get it the way you want but you should be able to see the technique.

You should set a fixed height. Also, the width, because the auto will cause a div to center in the space provided.
jim.thornton is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to 3bigissues i need to know
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.49590 seconds with 12 queries