473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

A work in progress, CSS assistance needed

Hi All,

I am redesigning our current website and am going for the tableless
layout and fluid design. Yeah! Right? Only I am no CSS expert.

I've got the basic design but have hit two problems that I was hoping
someone might take a look at the page and maybe tell me how to fix it.

1st. The top banner area is divided into 3 divs. When I resize in
Mozilla, Firefox and Safari there is a vertical white stripe between the
center and right div and depending on where I stop it may or may not be
visible.

2nd. In IE6, there is a white space between the banner area and the
"menu bar" that I can not make go a way. This does not occur in Mozilla,
Firefox or Safari.

Also, if anyone sees where I might have glaring problems in the rest of
the CSS and wants to alert me to these I would be grateful.

The link to the page in question is here;
<http://ocgweb.marine.usf.edu/~patrick/New/test.html>

Thanks for your time and help,
Patrick

--
Patrick A. Smith Assistant System Administrator
Ocean Circulation Group – USF - College of Marine Science
http://ocgweb.marine.usf.edu Phone: 727 553-3334

The trouble with doing something right the first time is that nobody
appreciates how difficult it was. - La Rochefoucauld
Jan 31 '07 #1
6 2067
Patrick Smith wrote:
1st. The top banner area is divided into 3 divs. When I resize in
Mozilla, Firefox and Safari there is a vertical white stripe between
the center and right div and depending on where I stop it may or may
not be visible.
Why the three divs? Is something else going to be in them? Seems like
overkill. Use one div, and float the graphic left with a bit of left
padding.
2nd. In IE6, there is a white space between the banner area and the
"menu bar" that I can not make go a way. This does not occur in
Mozilla, Firefox or Safari.
No IE at the moment...
Also, if anyone sees where I might have glaring problems in the rest
of the CSS and wants to alert me to these I would be grateful.
I removed a tonne! of "position:relative" (all of them) and nothing
changed. Why are any of them there?

Changing #topcontentleft 's margin:0 to margin:1px caused the entire top
area to explode.
The link to the page in question is here;
<http://ocgweb.marine.usf.edu/~patrick/New/test.html>
--
-bts
-Motorcycles defy gravity; cars just suck
Jan 31 '07 #2
On 31 Jan, 19:50, Patrick Smith <psm...@marine.usf.eduwrote:
I am redesigning our current website and am going for the tableless
layout and fluid design.
<http://ocgweb.marine.usf.edu/~patrick/New/test.html>

Looking good so far and the coding is fairly good too.
Switch to a HTML 4.01 Strict doctype.
- You need this if you care about IE working right
- You ought to anyway. This isn't a legacy page

Don't greek out the menu bar markup, use real <liand <aif you
expect the CSS prototype to look representative of the final product.

Add a greeked "copyrights, credits and legalese" footer to your draft
design. I can't see much navigation here. Presumably there's going to
be a 2nd level menu at some point? Equally how images and image
captions are expected to be displayed.

There's a lot of position:relative; going on. This is superfluous,
unless you're actually moving stuff around (which you're not). I'd
drop them and leave static positioning. If you want an explicitly
stated default, add it to body {}

body {} should probably set colors.

0.8em is smaller than ideal for a major nav feature. Stick with 1em

Set the blue stripe header heights in ems, not px, or the text will
spill out of them when resized.

A bit (more) of horizontal padding inside the content boxes stops the
text running into each other when re-sized larger.

I'd add a class on the major elements like "topcontentleft" and I'd
use this in the CSS selectors rather than #id. The id itself is OK,
but using id in a CSS selector is quite powerful and it makes it hard
to "subclass" smaller components within these areas later. Using class
works just as well for what you need, but is more flexible to adjust
the details.

This
border: #000080 2px solid;
border-top-width: 15px;

is a bit more terse (and readable) than
border-top: #000080 15px solid;
border-left: #000080 2px solid;
border-right: #000080 2px solid;
border-bottom: #000080 2px solid;


1st. The top banner area is divided into 3 divs. When I resize in
Mozilla, Firefox and Safari there is a vertical white stripe between the
center and right div and depending on where I stop it may or may not be
visible.
I didn't see this in FF 1.5.0.9 / WinXP

2nd. In IE6, there is a white space between the banner area and the
"menu bar" that I can not make go a way. This does not occur in Mozilla,
Firefox or Safari.
Happens in IE7 too. Can't see anything obvious, but don't have time to
look harder.
Feb 1 '07 #3
Beauregard T. Shagnasty wrote:
Patrick Smith wrote:
>1st. The top banner area is divided into 3 divs. When I resize in
Mozilla, Firefox and Safari there is a vertical white stripe between
the center and right div and depending on where I stop it may or may
not be visible.
Try this replacement for your CSS for all the parts to and including the
..imgholder. Wrap a new <div id="topcontainer"around your other three
"top" divs. Works in Firefox, Opera, and IE6.

<style type="text/css">
body{
font: 100% #000 arial, sans-serif; /* don't forget fallback font */
margin: 0;
padding: 0;
}
#topcontainer {
background-image: url(bgforlogowbgsm.jpg);
background-repeat: repeat-x repeat-y;
height: 7em;
}

#topcontentleft {
background: transparent;
float:left;
width:24%;
}

#topcontentcenter {
background-color: transparent;
float:left;
width:49%;
}

#topcontentright {
background-color: transparent;
float:right;
width:24%;
}

..imgholder {
padding-left: 2.5em;
}

Further, I removed every instance of "position: relative" and nothing
changed. They do not seem to be necessary at all.

--
-bts
-Motorcycles defy gravity; cars just suck
Feb 1 '07 #4
On 2007-02-01, Andy Dingley <di*****@codesmiths.comwrote:
On 31 Jan, 19:50, Patrick Smith <psm...@marine.usf.eduwrote:
>I am redesigning our current website and am going for the tableless
layout and fluid design.
><http://ocgweb.marine.usf.edu/~patrick/New/test.html>
[snip]
There's a lot of position:relative; going on. This is superfluous,
unless you're actually moving stuff around (which you're not).
I haven't looked at this particular site, but sometimes there is a case
for using position: relative to establish a containing block for
positioned descendents, even if one doesn't wish to offset the
relatively positioned box itself.
Feb 1 '07 #5
Andy Dingley wrote:
On 31 Jan, 19:50, Patrick Smith <psm...@marine.usf.eduwrote:

>>I am redesigning our current website and am going for the tableless
layout and fluid design.

>><http://ocgweb.marine.usf.edu/~patrick/New/test.html>

Looking good so far and the coding is fairly good too.
Switch to a HTML 4.01 Strict doctype.
- You need this if you care about IE working right
- You ought to anyway. This isn't a legacy page

Don't greek out the menu bar markup, use real <liand <aif you
expect the CSS prototype to look representative of the final product.

Add a greeked "copyrights, credits and legalese" footer to your draft
design. I can't see much navigation here. Presumably there's going to
be a 2nd level menu at some point? Equally how images and image
captions are expected to be displayed.

There's a lot of position:relative; going on. This is superfluous,
unless you're actually moving stuff around (which you're not). I'd
drop them and leave static positioning. If you want an explicitly
stated default, add it to body {}

body {} should probably set colors.

0.8em is smaller than ideal for a major nav feature. Stick with 1em

Set the blue stripe header heights in ems, not px, or the text will
spill out of them when resized.

A bit (more) of horizontal padding inside the content boxes stops the
text running into each other when re-sized larger.

I'd add a class on the major elements like "topcontentleft" and I'd
use this in the CSS selectors rather than #id. The id itself is OK,
but using id in a CSS selector is quite powerful and it makes it hard
to "subclass" smaller components within these areas later. Using class
works just as well for what you need, but is more flexible to adjust
the details.

This
border: #000080 2px solid;
border-top-width: 15px;

is a bit more terse (and readable) than

>>border-top: #000080 15px solid;
border-left: #000080 2px solid;
border-right: #000080 2px solid;
border-bottom: #000080 2px solid;


>>1st. The top banner area is divided into 3 divs. When I resize in
Mozilla, Firefox and Safari there is a vertical white stripe between the
center and right div and depending on where I stop it may or may not be
visible.


I didn't see this in FF 1.5.0.9 / WinXP
>>2nd. In IE6, there is a white space between the banner area and the
"menu bar" that I can not make go a way. This does not occur in Mozilla,
Firefox or Safari.


Happens in IE7 too. Can't see anything obvious, but don't have time to
look harder.

Thanks for the input. It is all very good thoughts and will work on
implementing them. What do you mean by greeking?

Patrick

--
Patrick A. Smith Assistant System Administrator
Ocean Circulation Group – USF - College of Marine Science
http://ocgweb.marine.usf.edu Phone: 727 553-3334

The trouble with doing something right the first time is that nobody
appreciates how difficult it was. - La Rochefoucauld

Feb 5 '07 #6
On 5 Feb, 15:46, Patrick Smith <psm...@marine.usf.eduwrote:
What do you mean by greeking?
Just adding some "rhubarb rhubarb" text to emulate the other features
you're likely to have to add in the final version. Originally (from
printed typography) greeking was literally unintellible blobs rather
than real characters, but for web design "Lorem ipsum" is more
convenient, representative and no more work.

If you mock up a trivial simplest case, it only demonstrates that
simplest case. I think you're likely to be needing a secondary menu
and a legalese footer before you're done. Many site style demos need
more than one page to be greeked up before they can really demonstrate
the full stylesheet.

Feb 5 '07 #7

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

Similar topics

16
by: Paul | last post by:
i have been working with vb6 for a while but never had the pleasure of using progress bars. That is until now, one of the programs i have written has just been modified so that large csv files of...
2
by: Mrs Howl | last post by:
I don't know if there's even a way to do what I want. I click on a button in an Access form, and it opens an instance of Excel, and opens a workbook and runs a macro that's in it. So far, fine,...
5
by: James Morton | last post by:
I have a Static DataSet in a class file that I am using globally between a few forms. The main form populates the dataset through a menu option which invokes ReadXML in the class file to populate...
3
by: Jerry Camel | last post by:
How do you tell the client how large the file that's being downloaded is? I've seen web sites where the download dialog shows a progress meter. I'm assuming that the server is sending the file...
6
by: Ernie | last post by:
I have a unique issue... We are using Microsoft Commerce Server and Content Manager on our eCommerce Site. I have been requested to display a login status (Pic that says Please Wait) in a control...
1
by: Mike P | last post by:
I am trying to apply the Update Progress control to a method that is building a zip file and then giving the user the chance to save the file via a popup box. But the Update Progress control...
1
by: NewbieDB2DBA | last post by:
I'm running DB2 UDB v8.2 on Windows 2003 SP2. How do I get a tablespace out of Roll Forward in Progress state?! I've tried everything I can think of, but I'm extremely new to DB2 (more...
7
by: kimiraikkonen | last post by:
Hello experts, I've been already working on a project and also asked and i've managed to create a basic Gmail mail sender, but i want to add a progressbar that shows "sending is in progress" but...
6
by: kimiraikkonen | last post by:
Hi, I use system.io.file class to copy files but i have a difficulty about implementing a basic / XP-like progress bar indicator during copying process. My code is this with no progress bar,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...

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.