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

Home Posts Topics Members FAQ

Need help with some design/css problems

Hi everybody,

I've downloaded a design from www.oswd.org and have started rewriting the
css and html to end up with a new design for my site.

So far so good, but there are a few problems I don't seem to find a
solution for.

You can see the new design here: http://tesinfo.atspace.com/test.html (it's
based on Blew Wave, http://www.cirkuit.net/, by the way).

First, if I resize the browser window (say, 500x500), the title ends up on
two lines. No problem, but the menu is displayed over the title. How can I
make sure the menu always starts below the title?

Second, the three column layout is made to adapt to the width of the
screen: 15% on either side with 1% margin, and the rest in the center
column. Again, when the browser window is resized to a small size, either
the text (center) is displayed over the left image (in Opera), or the right
column is placed below the center one (IE).

Regardless of what browser the page is being displayed in, I'd like to have
the left and right column be shown completely, and the center column to
adapt to the remaining width.

Tips and suggestions are always welcome, by the way.

Thanks in advance for your time and help,

Ikke
Oct 29 '06 #1
13 1518
In article <Xn************ ************@19 5.130.132.70>,
Ikke <ik**@hier.bewr ote:
Hi everybody,

I've downloaded a design from www.oswd.org and have started rewriting the
css and html to end up with a new design for my site.

So far so good, but there are a few problems I don't seem to find a
solution for.

You can see the new design here: http://tesinfo.atspace.com/test.html (it's
based on Blew Wave, http://www.cirkuit.net/, by the way).

First, if I resize the browser window (say, 500x500), the title ends up on
two lines. No problem, but the menu is displayed over the title. How can I
make sure the menu always starts below the title?
You can make the title a bit smaller than 300%, you can shorten
the title, you can put Between&nbsp;al l&nbsp;the&nbsp ;words
&nbsp;in&nbsp;t he&nbsp;title.

As to the overlapping of increased text onto the menu, two
strategies: either make enough pixel margin provisions and don't
worry about extreme cases or make margins in ems so as to scale
with the font.

Second, the three column layout is made to adapt to the width of the
screen: 15% on either side with 1% margin, and the rest in the center
column. Again, when the browser window is resized to a small size, either
the text (center) is displayed over the left image (in Opera), or the right
column is placed below the center one (IE).

Regardless of what browser the page is being displayed in, I'd like to have
the left and right column be shown completely, and the center column to
adapt to the remaining width.
If you have images left and right, then % widths are not the best
way to go unless you are prepared to play the odds, simply
because pics of finite px width will often be bigger than any
percentage of a narrowed window...
One way to fix is to define the widths in px to ensure they hold
the pics. Another is to be very generous with your % and not to
worry. There is a third way (to explore), but it is a trickier
thing to do, perhaps a bit overkill here: % base their dimensions
in css. Then they themselves will scale with the % widths

--
dorayme
Oct 29 '06 #2
dorayme <do************ @optusnet.com.a uwrote in
news:do******** *************** ***********@new s-vip.optusnet.co m.au:

<snipped>
You can make the title a bit smaller than 300%, you can shorten
the title, you can put Between&nbsp;al l&nbsp;the&nbsp ;words
&nbsp;in&nbsp;t he&nbsp;title.
Thanks - I've added the non-breaking spaces and reduced the size to 250%.
As to the overlapping of increased text onto the menu, two
strategies: either make enough pixel margin provisions and don't
worry about extreme cases or make margins in ems so as to scale
with the font.
I'm trying to make the website look "perfect" (if there is such a thing)
from a minimum resolution 640x480 and up, but I'd like to be able to keep
a decent layout for smaller screens.

With the &nbsp;s and the 250% size, this should work.

<snipped>
If you have images left and right, then % widths are not the best
way to go unless you are prepared to play the odds, simply
because pics of finite px width will often be bigger than any
percentage of a narrowed window...
That's why I calculated the sizes on a minimum of 640x480 - but still,
I'm looking for another solution.
One way to fix is to define the widths in px to ensure they hold
the pics. Another is to be very generous with your % and not to
worry. There is a third way (to explore), but it is a trickier
thing to do, perhaps a bit overkill here: % base their dimensions
in css. Then they themselves will scale with the % widths
Ok, let's drop that tricky solution, and assume that I'm not the generous
type :)

Your first solution actually sounds perfect: I assign the left and right
region a fixed width in px, so the pics will be displayed perfectly.

But when I set the width in px, the center part suddenly gets displayed
below the left, and the right below the center part. How can I keep them
next to eachother?

Thanks for your help!

Ikke
Oct 29 '06 #3
On 2006-10-29, Ikke wrote:
Hi everybody,

I've downloaded a design from www.oswd.org and have started rewriting the
css and html to end up with a new design for my site.

So far so good, but there are a few problems I don't seem to find a
solution for.

You can see the new design here: http://tesinfo.atspace.com/test.html (it's
based on Blew Wave, http://www.cirkuit.net/, by the way).

First, if I resize the browser window (say, 500x500), the title ends up on
two lines. No problem, but the menu is displayed over the title. How can I
make sure the menu always starts below the title?
Remove "height: 70px;" from #header.
Second, the three column layout is made to adapt to the width of the
screen: 15% on either side with 1% margin, and the rest in the center
column. Again, when the browser window is resized to a small size, either
the text (center) is displayed over the left image (in Opera), or the right
column is placed below the center one (IE).

Regardless of what browser the page is being displayed in, I'd like to have
the left and right column be shown completely, and the center column to
adapt to the remaining width.
Then you don't want the side columns to be 15%.

--
Chris F.A. Johnson <http://cfaj.freeshell. org>
=============== =============== =============== =============== =======
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Oct 29 '06 #4
"Chris F.A. Johnson" <cf********@gma il.comwrote in
news:ov******** ****@xword.teks avvy.com:

<snipped>
Then you don't want the side columns to be 15%.
Yes and no - in my example they need to be at least 15% to be shown
correctly in a 640x480 screen.

What I really want is that the left and right column are fixed, and the
center takes up the remaining space.

Thanks,

Ikke
Oct 29 '06 #5
On 2006-10-29, Ikke wrote:
"Chris F.A. Johnson" <cf********@gma il.comwrote in
news:ov******** ****@xword.teks avvy.com:

<snipped>
> Then you don't want the side columns to be 15%.

Yes and no - in my example they need to be at least 15% to be shown
correctly in a 640x480 screen.
15% of 640 is not the same as 15% of 500.
What I really want is that the left and right column are fixed, and the
center takes up the remaining space.
If you want them fixed, make them fixed, not 15%.

--
Chris F.A. Johnson <http://cfaj.freeshell. org>
=============== =============== =============== =============== =======
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Oct 29 '06 #6
In article <Xn************ ************@19 5.130.132.70>,
Ikke <ik**@hier.bewr ote:
dorayme <do************ @optusnet.com.a uwrote in
news:do******** *************** ***********@new s-vip.optusnet.co m.au:
One way to fix is to define the widths in px to ensure they hold
the pics.
Your first solution actually sounds perfect: I assign the left and right
region a fixed width in px, so the pics will be displayed perfectly.

But when I set the width in px, the center part suddenly gets displayed
below the left, and the right below the center part. How can I keep them
next to eachother?
First thing to do is get rid of those crazy gifs on the side! I
won't go into it here. Go though the css and html and simplify
everything. Get rid of the 70px height as Chris FA Johnson says.
You don't actually have to float the content... but you can.
Simpler to not set margins on the side panels for now and allow
more left and right margins for grace on the content div.

--
dorayme
Oct 30 '06 #7
On 2006-10-29, Ikke <ik**@hier.bewr ote:
"Chris F.A. Johnson" <cf********@gma il.comwrote in
news:ov******** ****@xword.teks avvy.com:

<snipped>
> Then you don't want the side columns to be 15%.

Yes and no - in my example they need to be at least 15% to be shown
correctly in a 640x480 screen.

What I really want is that the left and right column are fixed, and the
center takes up the remaining space.
This may be easier to achieve with positioning than with floats.

This is similar to the problem FuzzyLogic had. He wanted the left column
160px, and the right column whatever was left. But you can't say:

float: left;
width: (100% - 160px);

But you can get this effect with positioning.

You can make the left:

position: absolute;
width: 150px;

the right:

position: absolute;
width: 150px;
right: 0px;

and the middle take up all the space in between with:

position: absolute;
left: 150px;
right: 150px;

Make sure you make the container for the positioned boxes position:
relative or position: absolute, to make all these position properties
refer to the right container.
Oct 30 '06 #8
dorayme <do************ @optusnet.com.a uwrote in
news:do******** *************** ***********@new s-vip.optusnet.co m.au:

<snip>
First thing to do is get rid of those crazy gifs on the side! I
won't go into it here.
Huh? Why would I do that? If those gifs weren't there, there wasn't a
problem in the first place!
Go though the css and html and simplify
everything. Get rid of the 70px height as Chris FA Johnson says.
You don't actually have to float the content... but you can.
Simpler to not set margins on the side panels for now and allow
more left and right margins for grace on the content div.
I'm going to make an attempt at not floating everything - hopefully that
will simplify things...

Thanks,

Ikke
Oct 30 '06 #9
"Chris F.A. Johnson" <cf********@gma il.comwrote in news:hcrf14-ocj.ln1
@xword.teksavvy .com:

<snip>
>Yes and no - in my example they need to be at least 15% to be shown
correctly in a 640x480 screen.

15% of 640 is not the same as 15% of 500.
That's why I said 640x480, which is the minimum resolution.
>What I really want is that the left and right column are fixed, and the
center takes up the remaining space.

If you want them fixed, make them fixed, not 15%.
But if I give them a fixed width, the content no longer holds between them!
That's why I have stuck to the 15%.

Thanks,

Ikke
Oct 30 '06 #10

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

Similar topics

12
9770
by: Javier | last post by:
Hello, I'm very new in this forum and as I have the following problem, the website is in http://new.vanara.com ---------------------------------------------------------------------------- -------------------------------------------- Here's how the site works: You should press a button in the rollover area in order to load a source file on an Iframe, this Iframe is actually hidden working as a Buffer. The body of this loaded Iframe is...
4
1836
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...
55
3917
by: Alex | last post by:
Hello people, The following is not a troll but a serious request. I found myself in a position where I have to present a Pro/Con list to management and architects in our company with regard to developing new products (specifically - desktop products) in C#/.NET instead of the usual C++/COM that we do. Since I am not an experienced .NET developer by any definition, I don't have a good grip on the "Pro" part. The argument that I hear...
39
2581
by: Steven T. Hatton | last post by:
I came across this while looking for information on C++ and CORBA: http://www.zeroc.com/ice.html. It got me to wondering why I need two different languages in order to write distributed computing apps. In the case of CORBA, that means IDL and C++. In the case of ICE, that means slice and C++. Slice actually looks a lot closer to C++ than does IDL. Nonetheless, I'm wondering if there is some fundamental limitation in C++ which precludes...
19
4088
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate the code that implements managing unbound controls on forms given the superior performance of unbound controls in a client/server environment. I can easily understand a newbie using bound controls or someone with a tight deadline. I guess I need...
3
10638
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems that are hard to find. The main problem I am having right now is that I have a report that is sorted by one of these lookup fields and it only displays the record's ID number. When I add the source table to the query it makes several records...
6
1830
by: John Rivers | last post by:
hi, here is how to do it and restore sanity to aspx html rendering: (please only reply with sensible architectural discussion - juan) put this at the end of an aspx file (or use an include at the end if you want to reuse it on many aspx pages) (notice closing brace) (start) <%}
3
2447
by: vijaykokate | last post by:
Our company http://www.softnmation.com/ offers its customers a great variety of products. Everything you need can be found in this site. Web Template, CSS Template, Logo Template, Corporate Identity Package, Logo Set,Icon Set, Flash Animated Template, Flash Intro Header, Flash Site, PHP-Nuke Theme, Full Site, Stretched Web Templates and Stretched Flash Templates, ZenCart Templates ,osCommerce Templates and many more
18
2325
by: bsruth | last post by:
I tried for an hour to find some reference to concrete information on why this particular inheritance implementation is a bad idea, but couldn't. So I'm sorry if this has been answered before. Here's the scenario: We have a base class with all virtual functions. We'll call this the Animal class. We then make two classes Fish and Bird that both inherit from Animal. In the program, we have a single array of Animal pointers that will...
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
7307
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
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
5622
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
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2716
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
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.