You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Object Oriented CSS
Hi!
I got a problem and don't know how to solve this in a proper way. Perhaps someone can give me a tip.
I've got a grid with two cells and I need to position the content of one cell relative to the parent element of the grid. Problem is that when I do this the cell with the positioned content is collapsing. The other cell floats over the cell with the positioned content.
My solution right now is to add some more or less invisible markup (<span> </span>) but I don't like this. But till now I didn't find another working solution which I like.
I hope this is somehow understandable. I add a code example which explains it hopefully a little bit better.
<div class="mod position_absolute"><!-- needs to be positioned on the bottom of the parent element -->
<b class="top"><b class="tl"></b><b class="tr"></b></b>
<div class="inner">
<div class="bd">
... lorem ipsum ...
</div>
</div>
<b class="bottom"><b class="bl"></b><b class="br"></b></b>
</div>
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to object-or...@googlegroups.com
No, the grid starts in the mod.
Murray Nuttall
unread,
Nov 19, 2009, 3:27:27 PM11/19/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to object-or...@googlegroups.com
Hi Stefan, Can you zip this up or show us an example online? I can't quite picture what you're trying to do with it. Do you really need to use position absolute to achieve the design? Or is there an easier way?
m.
Stefan Frede
unread,
Nov 19, 2009, 5:00:11 PM11/19/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to object-or...@googlegroups.com
I'm sorry, it is not live so there is no example online, but I packed to screenshots and the relevant code together. I hope this helps to understand what the problem is.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to object-or...@googlegroups.com
I wonder if that's too much markup for what you're doing? Like navigation, your header is a special case. You could get away with constructing it like this:
On Fri, Nov 20, 2009 at 11:00 AM, Stefan Frede <ste...@frede.biz> wrote:
I'm sorry, it is not live so there is no example online, but I packed to screenshots and the relevant code together. I hope this helps to understand what the problem is.
Stefan
Stefan Frede
unread,
Nov 19, 2009, 7:05:38 PM11/19/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to object-or...@googlegroups.com
I'm playing around with the OOCSS stuff and try to find out how to use it in a proper way. Perhaps I've overdone it a little bit (^_~)
I just found out that it do not help to wrap the navigation which is positioned absolute in a size1of1 grid. IEs don't like it and they still collapse. I do have to enter some textual content.
Stefan
Nicole Sullivan
unread,
Nov 19, 2009, 7:41:40 PM11/19/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to object-or...@googlegroups.com
I don't usually use OOCSS components for the header, footer, and navigation. They tend to be so site specific that you end up adding a lot of cruft into your little legos in order to get pixel perfect display.