(sorry for x-post but news://macromedia.dreamweaver seem unable to help,
which I find astounding.)
Hi, I'm VERY new to DW MX 2004 (opk then, I'm new to DW..period!)
I'm sipmly trying to do the following:
setup a page with 4 divs -
1) div id Logo (top right)
2) div id links (next to logo at the top, so call it top right)
3) div id main main part of page, in the middle
4) div id bottom at the bottom of the page below everything else.
I've managed to do it, BUT, when altering the text size in IE6 to largest,
the bottom div is overlayed on top on the main div.
Here is the code from the CSS:
<!-- start code-->
/* CSS Document */
body{
padding :0;
margin :0;
}
#main{
padding-top : 130px;
padding-bottom : 30px;
padding-left : 30px;
padding-right : 30px;
}
#content h1 {
font-family: "Trebuchet MS", Georgia, "Times New Roman", Times, serif;
font-size: 120%;
font-weight: normal;
color: #000000;
background-color : transparent;
}
#content h2 {
font-family: "Trebuchet MS", Georgia, "Times New Roman", Times, serif;
font-size: 100%;
font-weight: bold;
color: #000000;
background-color : transparent;
}
#content p{
font-family: "Trebuchet MS", Georgia, "Times New Roman", Times, serif;
font-size: 80%;
font-weight: normal;
color: #000000;
background-color : transparent;
line-height : 140%;
}
#logo{
position : absolute;
top : 16px;
left : 12px;
z-index : 50;
width: 443px;
height: 76px;
}
#links{
position : absolute;
top : 20px;
right : 0;
text-align : right;
left: 391px;
width: 500px;
height: 80px;
}
#bottom{
position: absolute;
bottom: 0;
right: 0;
text-align: center;
left: 18px;
top: 433px;
background-color: #FFFFCC;
}
<!--end code-->
Amy ideas what I'm doing wrong???
Thanks, a newbie
--
Neil 27 2627
Neil Monk wrote: (sorry for x-post but news://macromedia.dreamweaver seem unable to help, which I find astounding.)
[snip]
(I won't attempt to answer the question because I get similar problems with
footers when I use absolute positioning! I normally avoid absolute positioning
in these circumstances for that reason. It isn't just IE 6. Try (say) Firefox,
or any of the others.)
My real purpose was to point out that macromedia.drea mweaver is a rather
strangely-configured newsgroup. The "real" newsgroup is run on a Macromedia
news-server forums.macromed ia.com and if you post via that you should be OK.
But it appears from your message-IDs that you posted via your ISP's
news-server. Now, while there is a feed *out* from the Macromedia news-server,
there isn't a feed in (at least, not in normal circumstances). So no one there
saw your posts!
Don't ask why! It is a hot topic of debate there at the moment. I've made the
same "mistake" in the past.
--
Barry Pearson http://www.Barry.Pearson.name/photography/ http://www.BirdsAndAnimals.info/ http://www.ChildSupportAnalysis.co.uk/
Neil Monk wrote: (sorry for x-post but news://macromedia.dreamweaver seem unable to help, which I find astounding.)
Hi, I'm VERY new to DW MX 2004 (opk then, I'm new to DW..period!)
I'm sipmly trying to do the following:
setup a page with 4 divs - 1) div id Logo (top right) 2) div id links (next to logo at the top, so call it top right) 3) div id main main part of page, in the middle 4) div id bottom at the bottom of the page below everything else.
I've managed to do it, BUT, when altering the text size in IE6 to largest, the bottom div is overlayed on top on the main div.
Here is the code from the CSS: <!-- start code--> /* CSS Document */ body{ padding :0; margin :0; } #main{ padding-top : 130px; padding-bottom : 30px; padding-left : 30px; padding-right : 30px; }
#content h1 { font-family: "Trebuchet MS", Georgia, "Times New Roman", Times, serif; font-size: 120%; font-weight: normal; color: #000000; background-color : transparent; }
#content h2 { font-family: "Trebuchet MS", Georgia, "Times New Roman", Times, serif; font-size: 100%; font-weight: bold; color: #000000; background-color : transparent; }
#content p{ font-family: "Trebuchet MS", Georgia, "Times New Roman", Times, serif; font-size: 80%; font-weight: normal; color: #000000; background-color : transparent; line-height : 140%; } #logo{ position : absolute; top : 16px; left : 12px; z-index : 50; width: 443px; height: 76px; }
#links{ position : absolute; top : 20px; right : 0; text-align : right; left: 391px; width: 500px; height: 80px; }
#bottom{ position: absolute; bottom: 0; right: 0; text-align: center; left: 18px; top: 433px; background-color: #FFFFCC; }
<!--end code-->
Amy ideas what I'm doing wrong???
You didn't put all of these divs in a container, which
means, that position:absolu te on the footer div, is in
respect to it's container, being the body, which isn't any
higher than (or not even as high as) the viewport, being
your browser's window.
If you put all the divs in a container div, which you give a
height in ems instead of px, the whole lot will expand with
the text size. http://www.csscreator.com/version2/pagelayout.php
might be useful :-)
--
Els
Mente humana é como pára-quedas; funciona melhor aberta.
Els wrote: Neil Monk wrote:
[snip] Here is the code from the CSS:
[snip] width: 443px; height: 76px;
left: 391px; width: 500px; height: 80px;
left: 18px; top: 433px;
Amy ideas what I'm doing wrong???
If you put all the divs in a container div, which you give a height in ems instead of px, the whole lot will expand with the text size.
Forgot to mention: lose the other px measures as well. use
ems, to make them expand with the text size.
--
Els
Mente humana é como pára-quedas; funciona melhor aberta.
"Els" <el*********@ti scali.nl> wrote in message
news:40******** **************@ dreader2.news.t iscali.nl... Els wrote:
Neil Monk wrote: [snip] Here is the code from the CSS: [snip] width: 443px; height: 76px; left: 391px; width: 500px; height: 80px; left: 18px; top: 433px; Amy ideas what I'm doing wrong???
If you put all the divs in a container div, which you give a height in ems instead of px, the whole lot will expand with the text size.
Forgot to mention: lose the other px measures as well. use ems, to make them expand with the text size.
ewww no :)
On Fri, 20 Feb 2004 09:41:18 -0000, "Neil Monk"
<neil.monk02@__ REMOVE__NO__SPA M__blueyonder.c o.uk> wrote: #bottom{ position: absolute; bottom: 0; right: 0; text-align: center; left: 18px; top: 433px; background-color: #FFFFCC; }
<!--end code-->
Amy ideas what I'm doing wrong???
Yes - you are specifying font size in % (good) but positioning the
'bottom' div 433 pixels down the document (not good). The bottom can't
move when it needs to get out of the way of the larger text.
I haven't examined it in minute detail, but I think you can simply
remove the positioning from the bottom div and let it take up its
position within the normal flow.
One other thing: you've specified P as having font-size 80%, H2 as 100%,
H1 as 120%. Much better to have P as 100% and H1/H2 larger. If that
looks too large to you, reduce the default text size in your browser.
--
Stephen Poley http://www.xs4all.nl/~sbpoley/webmatters/
Neil Monk wrote: (sorry for x-post but news://macromedia.dreamweaver seem unable to help, which I find astounding.)
Hi, I'm VERY new to DW MX 2004 (opk then, I'm new to DW..period!)
I'm sipmly trying to do the following:
#bottom{ position: absolute; bottom: 0;
Can't be done.
Position 0,0 is the top left of your screen.
You're telling the division to place the bottom line at left position 0, the
right side at the left border.
Plus I've noticed you've tried to position divisions the wrong way.
Top means the top border. Left means the left border.
So where does top:20; left:0; get placed?
20 pixels down from the top, 0 pixels from the left border.
left:20; would simply move the division 20 pixels to the right.
If you intend to have two divisions side by side, you must use "float:"
I do not see a float element anywhere.
Unless you're using position:absolu te which is not necessary on top line
divisions.
Try this on for size:
<style type="text/css">
..mylinks { width:30%; height:150px; background:#88D CF0; float:left; }
..mylogo { height:150px; background:#FFF FA8; float:none;}
..main { background:gold ; }
..footer { background:blue ;
</style>
</HEAD>
<BODY>
<div class="mylinks" > this is the links place</div>
<div class="mylogo"> Logo goes here</div>
<div class="main"> Main content of the page</div>
<div class="footer"> copyright and legal stuff</div>
</BODY>
"Barry Pearson" <ne**@childsupp ortanalysis.co. uk> wrote in message
news:1alZb.77$T d6.65@newsfe1-win... Neil Monk wrote: (sorry for x-post but news://macromedia.dreamweaver seem unable to help, which I find astounding.) [snip]
(I won't attempt to answer the question because I get similar problems
with footers when I use absolute positioning! I normally avoid absolute
positioning in these circumstances for that reason. It isn't just IE 6. Try (say)
Firefox, or any of the others.)
My real purpose was to point out that macromedia.drea mweaver is a rather strangely-configured newsgroup. The "real" newsgroup is run on a
Macromedia news-server forums.macromed ia.com and if you post via that you should be
OK. But it appears from your message-IDs that you posted via your ISP's news-server. Now, while there is a feed *out* from the Macromedia
news-server, there isn't a feed in (at least, not in normal circumstances). So no one
there saw your posts!
Don't ask why! It is a hot topic of debate there at the moment. I've made
the same "mistake" in the past.
-- Barry Pearson http://www.Barry.Pearson.name/photography/ http://www.BirdsAndAnimals.info/ http://www.ChildSupportAnalysis.co.uk/
Thanks for that Barry, makes sense now, thought it was weird them not
replying! D'oh!
--
Neil
"Richard" <an*******@127. 000> wrote in message
news:c1******** @enews1.newsguy .com... Neil Monk wrote:
> (sorry for x-post but news://macromedia.dreamweaver seem unable to
help, > which I find astounding.) > Hi, I'm VERY new to DW MX 2004 (opk then, I'm new to DW..period!)
> I'm sipmly trying to do the following:
> #bottom{ > position: absolute; > bottom: 0;
Can't be done.
Position 0,0 is the top left of your screen. You're telling the division to place the bottom line at left position 0,
the right side at the left border.
Plus I've noticed you've tried to position divisions the wrong way. Top means the top border. Left means the left border. So where does top:20; left:0; get placed?
20 pixels down from the top, 0 pixels from the left border. left:20; would simply move the division 20 pixels to the right.
If you intend to have two divisions side by side, you must use "float:" I do not see a float element anywhere. Unless you're using position:absolu te which is not necessary on top line divisions.
Try this on for size:
<style type="text/css"> .mylinks { width:30%; height:150px; background:#88D CF0; float:left; } .mylogo { height:150px; background:#FFF FA8; float:none;} .main { background:gold ; } .footer { background:blue ;
</style> </HEAD> <BODY>
<div class="mylinks" > this is the links place</div> <div class="mylogo"> Logo goes here</div> <div class="main"> Main content of the page</div> <div class="footer"> copyright and legal stuff</div>
</BODY>
I don't really understand that, but I'm basically wanting to put the stuff
into an external style sheet, and reference it in, to each page.
Can you please be as simple as possible, and maybe given an example of where
my code is wrong, and what it maybe ought too look like. I'm not asking you
to do my site for me, but I'm "OLD SCHOOL" HTML author, before CSS and DIV's
were this popular, so I'm only really familiar with pure HTML (prob verion
three-ish)!!!
Thanks for all your help so far, but its gone way above my head :-(
--
Neil.
On Fri, 20 Feb 2004 20:53:04 -0000, Neil Monk
<neil.monk02@__ REMOVE__NO__SPA M__blueyonder.c o.uk> wrote: Thanks for all your help so far, but its gone way above my head :-(
As a "reformed" old-school coder myself, I found http://www.htmldog.com to
be very good at getting me up to speed on current web authoring techniques. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: rpesq |
last post by:
Hi,
I Need help changing the content of a DIV. I sincerely researched the
issue and have not found a solution except to scrap the idea and stick
with the iframe code that I had been using. My purpose here is to
avoid iframes.
I know how to change the DIV content to other basic html statements,
such as basic IMG's or Lists, but I want to put a Javascript into the
DIV, and have not found a way to do it.
|
by: Joey |
last post by:
Hello all,
I have been designing a site where the main content is enclosed in one
table, and that table needs to be centered (the centering is done by
using another container such as a div or table).
In the future we might change things so that all content is
left-aligned.
Okay, now obviously I do not want to "hardcode" all of the master
|
by: bj |
last post by:
Hi,
Yes, this is yet another "switching from tables to divs for layout
purposes" post. I have been searching for the past few hours to find
what I'm looking for as I hate posting unnecessarily. I am a pretty
crap searcher but I'm kinda sure this hasn't been written about yet.
Please feel free to prove me wrong and link to a solution. Otherwise
I'd appreciate any advice you may have.
I have a situation where I have a window that has...
|
by: ali |
last post by:
Hello every one
i need you help regarding div hide and show. i am having a link like
<a href="#" onClick="expandWin()">show/hide </a>
<div id=showHide>
</div>
within div i have lots of form tags and div elements say n. The problem
|
by: nikileehoward1 |
last post by:
I created a DIV layout on Myspace. You can only use CSS or HTML on the site.. I think that may be where I went wrong. There is 3 div tables on my page. I successfully added a picture to the first DIV. For some reason in Div3, pictures and links wont show up. Can anyone tell me why!? I tried putting a javascript inside the div tags but it's not allowed. Here's my code....
If you're familiar with myspace, this part of the code is on my "ABOUT...
| |
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...
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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...
|
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...
|
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();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |