![]() |
Help with optimizing css
Currently, my site doesn't scale well when the browser isn't at full size. Here's an example:
http://www.clipular.com/c/5250866561...SRcYiHFsM6_H0U (full size) http://www.clipular.com/c/5848857542...5TGFK_stM9N2wI (scaled window) The sidebar pushes into the rest of the site, and I don't know how to prevent it. This is the css code: Code:
@import url('https://fonts.googleapis.com/css?family=Short+Stack'); HTML Code:
{include file="{$root}{$temp}{$theme}/header.tpl"} |
The reason it's not scaling well is because you are using pixels, which are set in stone, as opposed to percentages:
HTML Code:
#left { width: 330px; margin: 0; padding: 10px; float: left; position: fixed; left: 9px; background-color: rgba(255, 255, 255, 0.5);} You'd be better off doing something like changing #right width to 75% and #left width to 25% or such. Also, out of curiosity, what is this? HTML Code:
<div id='v1'> </div><div id='v2'></div><div id='v3'></div><div id='v4'></div><div id='v5'></div> |
Ah, ok. I'll try to use percentages instead.
I'm not entirely sure what it is since I didn't make it. The layout is the "green" theme, which is one of the default themes to choose from; though I am trying to build off of it since I don't know how to make a layout from scratch. EDIT: Apparently removing it turns the background into a simple gradient instead of the checkered one it has now. |
Oh, huh, that's interesting. I do not use any of the older mysidia themes since I'm not sure if they still actually work with the current code. The most up-to-date functional theme, I believe, is "Main."
I, personally, recommend building off of that one instead. Let me know how the percentages work, and let me know if you need help with anything else :) |
I want to add; You've helped me out so much here lately that I would have no problem repaying the favor (sort of) and would gladly put together a theme for you, if you like, that is.
|
Thank you! It would be a big help since I'm pretty basic with css and the end product comes out pretty rough; as you probably saw from everything being too big, lol. I have a pretty large monitor so I didn't really know how it looked on other screens.
|
All times are GMT -5. The time now is 09:17 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.