Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DIV positioning problem in tableless skinDIV positioning problem in tableless skin
Previous
 
Next
New Post
2/8/2008 12:36 PM
 

Thank's Josh,

it seems their's light at the horizon. Based on your suggestion I redesigend the ascx and the css and it's really much better.

I think you missunderstood the background-image. The background-image needs to stretch from border to border in height and that's not possible with css background-image. I set a div absolute and z-index 1 and then the height by javascript, the only way I found to resize the background-image correctly for all browsers.

Finally I had to do an ie-hack, the height and width 100% are only working for IE, for FF and others I work with margins. I'll check in safari too, hope no new corrections are necessary. In FF acutally one last problem to solve, the bottompane does not wrap as it should.

Here you'll see the more ore less final version: http://www.starchag.ch/neu/tabid/69/language/de-CH/Default.aspx

Does somebody know how to prevent the wrap (LeftPane/ContentPane) when the window is resized smaller?

Thank's a lot for some more feedback and regards.
Daniel

 

 
New Post
2/8/2008 7:42 PM
 

I'm still far from an expert...actually not even close :->.

But I tell you what...I've beat my head against a wall for years trying to learn C#, and now for months trying to learn CSS.  The problem people like me(major add and a case of over confidence), things in computers seem so simple at first glance, so we dive in, not even realizing that we're doing something the hard way...and end up spending hours and hours trying to fix something that can take minutes.  Saying stuff like "I don't see what this isn't working..it worked fine when I did it the last time and I just added xyz" :->

So, now that I got my ADD under control(medication haha), I've learned that if I sit down with a book, and I have two GREAT books to recommend on both topics, and even just read it without doing the examples.  I'll hear myself say "ohh duhhhhhhh" about 30 times hehe.

I learned HTML so long ago, when it first came out pretty much...and causually screwed with it here and there...and figured Bahh..it's not that hard(and it isn't)...But CSS through me for a major loop jsut because of what I thought I knew.

 

Anyhow enough babbly.  Here is the best book on CSS, and I'm just givin you the name so you can trust that it's a genuine recommendation for CSS...it's full color with pics, and great detailed explanations of behaviors in ALL browsers(well....FF/IE/Safari/opera) along with the hacks ot make em all work the same!

Beginning CSS for Web Design 2nd edition by Richard York, published by Wrox ISBN: 978-0-470-09697-0.

Another tip if you care to take it :-> is.....Subscribe to the skinning newsgroup at least, with an email address that you actually read :->.  If your like me(major ADD), you kinda get tunnel vision looking at the same problem for hours on end, and you start to miss the easiest stuff 'cause you've been looking at it for so long.  When that starts to happen, I just open up my email, read a couple posts....see if anyone else is having trouble, maybe help someone...Whatever...Keeps your mind on the idea of skinnning, but gives you a break from your code for a minute....Works better than pulling your hair out and beating your now bald head against the wall.

 

Side note on your current project.  In your skin forlder you need to make sure you have a doctype file called skinname.doctype.xml ...Search it in the forms for the structure.

 

Take it for what it's worth!

Josh

PS

Don't get too frusterated to fast...DNN is very powerful, and will take time to learn, but it'll pay off big time in the end....You'll be able to relate it to everything in your "computer" life.

 

 


Josh Martin

 
New Post
2/9/2008 3:02 AM
 

Hi Josh,

You know for me Javascript and CSS are the hell, I'm coming from Windows Client/Server Programming and was using just a small portion of CSS and JavaScript. I started with web-developtment 9 years ago, but mainly for intranet solutions were speed and functionality was much more important than design. Now since years I changed, was coming independent and working the most time for the internet. The first desings I did the traditional DNN-way (with these unallowed, nestes tables) what's quit simple. But as the designs of my customers are coming always more complex I'm going to change and from now, I'll no more developing table-based sins. All these browser-compatibility issues are much better handels with the right DOC-Type, XHTML-compliance and CSS-based design.

But even Javascript and CSS are the hell, slowly I'll check and has to recognize that with Javascript amazing things are possible. Do you know a cool tool for designing and debuging Javascript?

I know DNN is powerfull, for a few years I had to work with SharePoint, a monster built with almost all technologies/languages Microsoft ever created. So since these days I'm loving DNN :-)

Daniel

 
New Post
2/9/2008 4:44 AM
 

Well ive been doing xmhtml/css skins from the beginning when DNN was crap in that area and stillmanaged to mke i work, its a metter of consantly learning, Fortunately the dnn4 installs were getting along better and better. But still there are issues that havent been solved from the early onesup to the newer ones. Based on the dnn 4.x install youa re using there has been a lot of invalid replacing and inserting of contentpanes.

Here is how I work

Converting the design

After I get the design i need to convert i am going to draw all the blocks that need to be positioned and how they shoudl flow and react.

Based on the history of dnn and ivalid html crap my method of choice was either floating a div left or right for the positioning. Absolute positioning was a hell in earlier dnn versions so i gave up on that since I can style anythign now with floated divs.

set up your framework by making one main div as the wrapper and in there float the ones you need either left or right and if you need to float others inside anothe floated one use a div as wrapper too. Altho for real html site with fullhtml freedom this is a bit overkill it ishelpfull for making the design more fogiving for extremely crappy programmed custom modules

if you need to set the flow back to normal use <div style="clear:both"

Work practices

use indenting in your code to understand which panel goes where, especially with more complex designs with a lot of panes and nested panes

use proper naming conventions.  I always start an id with capital and class in owercase to make my css file easy to read as well. NEVER  try to style a contentpane directly. In your first html setup maek sure your site work perfectly wih css and html before converting over to dnn. The panels that hald my contetpanes are usually called "id=ContentPanel" an in there have your conenpanel ( most dnns injected the contentpanes wrong and invalid, andthis made sure that the styling was indeed assigened to the correct element

 <div id="ContentPanel"><div id=ContentPane" runat="server"></div></div>

Navigation

Get a good menu system that is based on an unordered ist structure. This way you have ultimate design freedom and most online sampes are based on this so it makes you easy to implement these in your own portals. You can go fr the menus from telerik  or my skinoject of choice the cssme

Scripting

Use an unobtrosive scripting library ( you an still make html but the javascript will rewrite this on pageload into something more facny. see http://www.itbuzz.nl accordian panel and sliding news items. If you do a viewsource you dont see javascript for this thats all handeled by the jquery library. Another great library better to be used for webapp interfaces is the extjs one.

An extra helper

Helpers are always handy. I have one skinobject that i inject on all page and that has conditional comments that load differnet extra css files to target ie5 ie6 or ie 7 ( since this is usually where disigns screw up )

css tricks

Get to know your css tricks in order to target speciafic browsers lots of books annd online info on thsi subject. a ral handy one is the _ tric. If you start a css paramerter with _ it will only be recognized by i6    _width:100px;

containers

stay away from too many containers but use one that you style differntly based on the panle they are in 

#Rightpanel div.container {background-color:lime;}    #ContentPanel div.container  {background-color:pink;}

 

Thats it nothing to it :)

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DIV positioning problem in tableless skinDIV positioning problem in tableless skin


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out