Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > CSS positioning: 3px problem

Reply
Thread Tools

CSS positioning: 3px problem

 
 
Daan
Guest
Posts: n/a
 
      09-21-2003
Hello everyone,

Since I've learned that tables should only be used for tabular data, I
am now trying to use CSS for the positioning of elements on my page.
But I've run into a small problem.

The problem is with this page:
http://wwwhome.cs.utwente.nl/~stolp/cpl/index.html.

In Mozilla Firebird, the two small boxes and the large one in the
middle line up perfectly, that is: the top of the boxes is at the same
height. However, in Internet Explorer (6) and Opera (7), the small
boxes are just a little lower than the large box.

Is this something I'll have to learn to live with because the browsers
differ too much, or is there something wrong with my code?

The CSS-code can be found at
http://wwwhome.cs.utwente.nl/~stolp/cpl/style.css.

Thanks in advance for any suggestions,

Daan Stolp


 
Reply With Quote
 
 
 
 
Anders Thorsen Holm
Guest
Posts: n/a
 
      09-21-2003
Daan wrote:

> In Mozilla Firebird, the two small boxes and the large one in the
> middle line up perfectly, that is: the top of the boxes is at the
> same height. However, in Internet Explorer (6) and Opera (7), the
> small boxes are just a little lower than the large box.


Depends on font-sizes etc.

> Is this something I'll have to learn to live with because the
> browsers differ too much, or is there something wrong with my
> code?


The top menu is placed in the same div as the middle contents. Due to
font-size variations etc. it may take up more space than expected,
pushing the other contents of the middle div down.

Place the top menu outside either of the three columns.

Example (probably needs some optimizing):

<http://www.daimi.au.dk/~zoolook/misc/campuslaan37/>

--
Anders Thorsen Holm | http://www.daimi.au.dk/~zoolook/
"Angry men in combat fatigues talkin' to God on a two-way radio and
muttering incoherent slogans about freedom are eventually gonna
provide us with a great deal of entertainment." -- George Carlin
 
Reply With Quote
 
 
 
 
Daan
Guest
Posts: n/a
 
      09-21-2003
> Place the top menu outside either of the three columns.
>
> Example (probably needs some optimizing):
>
> <http://www.daimi.au.dk/~zoolook/misc/campuslaan37/>


Thanks a lot! That 'wrapper' element is just what I was looking for.

Daan


 
Reply With Quote
 
Daan
Guest
Posts: n/a
 
      09-21-2003
By the way, thanks for rewriting the rest of the page I noticed
that you have replaced a lot of my div's with <h#> and <p> elements.
That's certainly an improvent where document structure is concerned,
but in my effort to work with positionable blocks, all I could think
was "div, div, div!".

Thanks again!
Daan


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get rid of "width: 3px" separator in horizontal asp:menucontrol? DC ASP .Net 1 11-27-2007 11:38 AM
CSS Layout question - how to duplicate a table layout with CSS Eric ASP .Net 4 12-24-2004 04:54 PM
Set CSS property equal to another CSS property? Noozer HTML 10 10-13-2004 09:20 PM
Is there a way to set the a CSS property to be explicitly the same as another CSS property? Joshua Beall HTML 1 12-10-2003 07:21 PM
print.css and screen.css tom watson HTML 1 09-09-2003 02:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57