Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
css re-position specific panel elements
camo
New
I want to set my categories box on the left, content center, remaining panel elements right.
I tried: adding to my custom css
I tried: adding to my custom css
#Panel {No change
float: right;
}
div.Box.BoxCategories {
float: left;
}
#Content {whole panel now on left, content on right
float: right;
}
#Panel {
float: left;
}
No change
#Content {
float: center;
}
#panel { float: right;
}
div.Box.BoxCategories {
float: left;
}
no change
#Content {
margin:0px auto;
}
#panel { float: right;
}
div.Box.BoxCategories {
float: left;
}
result
#Content {
width:500px;
margin:0px auto;
text-align:left;
}
#panel { float: right;
}
div.Box.BoxCategories {
float: left;
}
Tagged:
0
Best Answers
-
UnderDog MVP
You or somebody else said I could directly manipulated files in my xamp installation correct?
That's correct. Usually xampp is installed in C:\xampp\
In there is a directory called htdocs in which you can place files ending in .php or .html of course. .php will be run through the xampp program (put simply) and will give you output, just like on a real site.Back off and give it break, or just help me by NOT helping me anymore, Ive had enough.
Keep in the back of your memory that you got rid of #Content and #Frame so if you get weird layout issues, just remember that you changed that.
Unzip the example you downloaded one more time. If you doubleclick the index.html in your example you will see the 3 column layout the way it should be.
You can "play" with that example by renaming .col1 to .Panel1 .col3 to .Panel2 and .col2 to .Content
Do the same in the stylesheet. It's not the best solution, but it's a start.
There was an error rendering this rich post.
0 -
sahotataran ✭✭✭@camo i gave a thought about it to have layout like
heres what i have - m not sure if it will work<div id="body" class="clearfix"> <div id="Content"><?php $this->RenderAsset('Content'); ?></div> <div id="Panel"><?php $this->RenderAsset('Panel'); ?></div> </div>
the main part will be played by CSS#Body {width:960px} #Content{width:500px;margin-right:10px; float:left} #Panel{width:450px;float:right} #Panel div{width:49%;float:right} #Panel div.BoxCategories {float:left}
by this code all the divs in #panel will float right and will have width = 195px
but the div.BoxCategories div will float left and have width = 195px
you will have to take care of the widths if you have padding and margins assigned to divs in #Panel
Hope this works for you. do keep me posted if this worked for you or notThere was an error rendering this rich post.
0 -
sahotataran ✭✭✭this is just CSS i dont think it will conflict with any plugins or anything but just with the layout. and you will have to take care on which pages you want to change the layout and stuff like that.
if you are good with CSS you can solve it out in minutes but else it might take a lot to figure out the work aroundsThere was an error rendering this rich post.
0
Answers
There was an error rendering this rich post.
But with a little imagination... The list of categorys would be far left, The list of discussions titles (snake plague strikes territory' etc) would be centered, and on the right would be the sign in module, top posters, popular tags etc, whatever you had in panel.
Heres current, imagine everything EXCEPTING the categories list on the right still.
http://www.camosreptiles.com.au/forum/
@camo what you're trying to do is a 3 column layout. Left, center, right.
That means that you need a second "panel" div, so you need panel1 and panel2
You have shown that you have tried some things, now show that you can use google.
The search terms are:
3 column layout css fluid
Find the right layout for you and then try to implement that into your theme.
There was an error rendering this rich post.
http://matthewjamestaylor.com/blog/perfect-3-column.htm
It works like this..
So uploaded the css to replace my custom css, then altered my default master.php as follows.
div id Frame, became 'colmask'
div id panel became 'colright'
div id content became 'colmid'
and I created a third div before the footer which I named 'colleft'
What I got was: Panel at 50% width at top
Content at 50% width at bottom
no left div at all.
I also tried them col1, col2, col3 (from css) in various order with same results.
I'm just wondering which part of the example you forgot to CTRL-C and CTRL-V
There was an error rendering this rich post.
You or somebody else said I could directly manipulated files in my xamp installation correct?
Ill try again there, and post you a pretty picture ok. Your sarcasm is still quite transparent. Im making the effort you've been hounding me about and your still at it.
Back off and give it break, or just help me by NOT helping me anymore, Ive had enough.
Ah screw it, Ill create a panel two as you suggested, fill it with 'BoxCategories' and write css accordingly.
<div id="Panel2"> <div class="Box BoxCategories"></div> </div>
I think ill leave it for now. I know how to swap to put the panel on the left.In there is a directory called htdocs in which you can place files ending in .php or .html of course. .php will be run through the xampp program (put simply) and will give you output, just like on a real site. Keep in the back of your memory that you got rid of #Content and #Frame so if you get weird layout issues, just remember that you changed that.
Unzip the example you downloaded one more time. If you doubleclick the index.html in your example you will see the 3 column layout the way it should be.
You can "play" with that example by renaming .col1 to .Panel1 .col3 to .Panel2 and .col2 to .Content
Do the same in the stylesheet. It's not the best solution, but it's a start.
There was an error rendering this rich post.
cheers.
< div id="Body" class="clearfix" >
< div id="Content"><?php $this->RenderAsset('Content'); ?>< /div>
< div id="Panel"><?php $this->RenderAsset('Panel'); ?>< /div>
< /div>
so is there a way @underdog that we can have something like
< div id="Body" class="clearfix" >
< div id="Content"><?php $this->RenderAsset('Content'); ?>< /div>
< div id="Panel1"><?php $this->RenderAsset('Panel1'); ?>< /div>
< div id="Panel2"><?php $this->RenderAsset('Panel2'); ?>< /div>
< /div>
and from the dashboard settings we can select the plugin (e.g who's online) to go to Panel1 or Panel2?
There was an error rendering this rich post.
Ive given up on idea myself, it would be neat if future versions allowed for custom
placing of modules (something like 'pockets') and creation of new ones. You could then really customise your vanilla installation.
heres what i have - m not sure if it will work
<div id="body" class="clearfix"> <div id="Content"><?php $this->RenderAsset('Content'); ?></div> <div id="Panel"><?php $this->RenderAsset('Panel'); ?></div> </div>
the main part will be played by CSS
#Body {width:960px} #Content{width:500px;margin-right:10px; float:left} #Panel{width:450px;float:right} #Panel div{width:49%;float:right} #Panel div.BoxCategories {float:left}
by this code all the divs in #panel will float right and will have width = 195px
but the div.BoxCategories div will float left and have width = 195px
you will have to take care of the widths if you have padding and margins assigned to divs in #Panel
Hope this works for you. do keep me posted if this worked for you or not
There was an error rendering this rich post.
p.s do you think that would cause conflict with core files looking for the original elements? Or plugins for that matter?
if you are good with CSS you can solve it out in minutes but else it might take a lot to figure out the work arounds
There was an error rendering this rich post.
There was an error rendering this rich post.
More abut.....CSS Positioning
Walsh