HTML - Alternative To Overflow:auto (sidebar Without Tables)
Hello,
I am currently making a vBulletin skin, and was wondering if there were any alternative to overflow: auto? The thing is, I'm trying to create a sidebar without tables AND with a fluid wrapper. My CSS code looks like this: Code: #wrapper { width: 90%; min-width: 980px; margin: 10px auto 0 auto; background: #1a1a1a url(images/magnetic/style/wrapper.png) repeat-x top left; border: 1px solid #161616; overflow-x: hidden; -moz-border-radius: 8px 8px 8px 8px; -webkit-border-bottom-left-radius: 8px; -webkit-border-bottom-right-radius: 8px; -webkit-border-top-left-radius: 8px; -webkit-border-top-right-radius: 8px; } #right-content { float: right; width: 275px; color: #7a7a7a; padding: 15px 0; } #left-content { margin: 0px 0 0 0; background: #e9ecee url(images/magnetic/style/bg-main.gif); padding: 0px; min-height: 800px; overflow: auto; overflow-x: hidden; -moz-border-radius: 8px 8px 8px 8px; -webkit-border-bottom-left-radius: 8px; -webkit-border-bottom-right-radius: 8px; -webkit-border-top-left-radius: 8px; -webkit-border-top-right-radius: 8px; } And here's what the HTML looks like: Code: <div id='wrapper'> <div id='right-content'> Right content (sidebar) here <!--end right--></div> <div id='left-content'> The left content here </div> </div> The thing is, when the overflow:auto is there, the page looks fine BUT it has issues when opening, for example, dropdown menu or expanding a big image. Here's what it does when opening a dropdown menu: Here's what it does when trying to open an image: http://img689.imageshack.us/img689/9...340problem.gif So what I'm trying to do, is to create a fluid layout with a right sidebar without tables. It's working, although I'm looking for some code modifications so it doesn't have issues with the dropdowns etc. Basically, it seems that everything looks fine BUT when we open something that is "larger" than the #left-content ID. Then it creates issues. Any idea? Thank you so much in advance. Similar TutorialsA little out of my depth here, and my site is based on a DW template. I have a photo section with thumbnails, that is expanding. I have gone from 10 rows to 30, and in the process broken something. I have compared the code from my original 10 rows to the 30 and cannot find anything that would cause the issue, so am hoping for some help. http://www.uniquefinishing.co.uk/photopages/photos.html On the top horizontal menu, click on "Videos", then "photos". See the table has dropped? This is the only consistent replication of the issue I can find. If you now keep clicking on the same "photos" link on the top menu, it randomly drops and fixes itself occasionally. This happens randomly from any page to the "photos" page. Where should I be looking? Hi Everyone, I have a div element on a page that has as a child a large node (content is "Ajax'd" into this child). The containing DIV has overflow : auto so that the user can scroll up and down the large content. The function of the containing DIV is simply to provide scrollability and the dimensions of that DIV shouldn't affect the dimensions of it's content. When I use an IFRAME to provide the scrollability, resizing the IFRAME is fine. The desired effect is to make this look like an IFRAME in effect, it is in effect supposed to look like a desktop app with a multiple document type pane. This is a crap idea I know, but it's outwith our hands. So we can't radically change the way that the produt looks at the moment. When I use the DIV, then resizing this must cause the browser to recalculate all of the childrens widths which takes ages. Does anyone have any suggestions apart from using an IFRAME for this ? What I want is to be able to resize the containing element without recalculating the widths of all its children. The document div with the scroll bars is held inside a Dojo ContentPane widget with resizable borders hence the noticeable redraw lag when the user changes the size of something. many thanks, Woody. I have a situation where I have to create a site of fixed width and (gulp) fixed height (I know, I know... client insists). So I've got a 'main content' div that is set to Overflow:Auto with css, so it provides a scroller inside the not-very-tall page, allowing me to accommodate a reasonable amount of text without forcing the vertical height to grow. However, the content div is in the middle of the page and the content inside the div makes use of code fragment anchors (y'know, 'href="#thisHeading"' type links). They work, but the browser puts the jumped-to text at the top of the viewport, NOT at the top of the scrolling div, so the correct bit of text is hidden above the level of the scroller's top edge. Is there a way around this? TIA Hi, I have a problem with my fileserver which might take a long time to fix, it works randomly, so I was wondering if there was a way to supply TWO SRCs in ONE HTML string, both serving as ALTERNATES. This is what I mean. Will this work? I tried to see if it works, and it does NOT work. How can I make ALT SRC work. <img src="URL1/johnhall.jpg" alt src="URL2/johnhall.jpg"> Once again, what I mean is...if URL1 fails for some reason, then URL2 loads johnhall.jpg....that means the website reader does not face any interruptions. How to make this work Thank you in advance for any advice. Hello guys, ew to this forum and relatively new to the world of infinite coding! I have a small dilemma, in that my funky 'competition' boxes, when put onto my page, mess up all the other styling. I have come to the conclusion that using <div> tags was a bad idea. I have a main CSS file called master.css controlling most of the syling, however the bulk of the text and content parts are made using div tags. Being really difficult to explain, I'll post a link: http://www.area51clan.seemeplayme.net/ben/test2.html The code for this: Quote: <form action="competition.php" method="post" target="_blank"> <div><img src="images/competition.jpg"></div> <div id="linkinput" style="background-image:url(images/competition2.jpg); background-repeat: no-repeat; width:180px; height:30px"> <input type="text" style="background-color: transparent; border: solid 0px #FFFFFF;" size="180" maxlength="150" name ="Forename" align="center"/> <img src="images/competition6.jpg" align="center"></div> <div id="linkinput" style="background-image:url(images/competition3.jpg); background-repeat: no-repeat; width:180px; height:30px"> <input type="text" style="background-color: transparent; border: solid 0px #FFFFFF;" size="180" maxlength="150" name ="Surname" align="center"/> <img src="images/competition7.jpg" align="center"></div> <div id="linkinput" style="background-image:url(images/competition4.jpg); background-repeat: no-repeat; width:180px; height:30px"> <input type="text" style="background-color: transparent; border: solid 0px #FFFFFF;" size="180" maxlength="150" name ="Email" align="center"/> <img src="images/competition8.jpg" align="center"></div> <div id="linkinput" style="background-image:url(images/competition5.jpg); background-repeat: no-repeat; width:180px; height:30px"> <input type="text" style="background-color: transparent; border: solid 0px #FFFFFF;" size="180" maxlength="150" name ="Answer" align="center"/> <img src="images/competition10.jpg" align="center"></div><br /><br /> <input type="submit" value="Submit"> </form> This is what I want, on this page: [note that the lighter coloured parts are fields which do feed into a database and work.] http://www.area51clan.seemeplayme.net/ben/home.html The little box on the right side with 'ABC' in it is where I want it. Alt > View source [in IE] will show you the HTML. I wasnt sure if you needed the CSS, as Im not very good with that and it isnt my code, so here it is: Quote: body{ background: url(images/bg2.jpg); margin: 0px; padding: 0px; text-align: center; } td{ vertical-align: top; text-align: left; } #div-table{ margin-left: auto; margin-right: auto; width: 1000px; } .table{ width: 1000px; } .left-side{ background: url(images/left-ex2.jpg) repeat-y; width: 110px; } .right-side{ background: url(images/right-ex2.jpg) repeat-y; width: 110px; } .top{ background: url(images/ate-fat2.jpg) no-repeat; width: 779px; height: 36px; } .foot{ background: url(images/foot2.jpg) no-repeat; width: 779px; height: 43px; } .head{ background: url(images/head.jpg) no-repeat; width: 779px; height: 125px; } .left-content-t{ background: #FFFFFF; width: 569px; } .right-content-t{ background: #FFFFFF url(images/nav-bg-right2.jpg) repeat-y; width: 210px; } .content-header{ background: url(images/content-head2.jpg) no-repeat; width: 569px; height: 47px; } .c-head-div{ margin-left: 25px; margin-top: 22px; margin-right: 25px; font-size: 10px; font-family: Verdana; } .c-head-div a:link{ text-decoration: none; color: #1C1C19; } .c-head-div a:hover{ text-decoration: underline; font-weight: bold; color: #2C4D00; } .c-head-div a:visited{ text-decoration: none; color: #1C1C19; } .c-head-div a:active{ text-decoration: none; color: #1C1C19; } .content{ background: #1C1C19 url(images/content-bg2.jpg) no-repeat; width: 568px; height: 487px; border-left: 1px solid #3D3D31; } .content-div{ margin-left: 22px; margin-right: 22px; margin-top: 3px; font-family: Verdana; color: #999999; font-size: 10px; } .nav-top{ background: url(images/nav-topb.jpg) no-repeat; width: 210px; height: 34px; } .nav-text{ margin-left: 12px; margin-right: 17px; margin-top: 10px; font-family: Verdana; color: #999999; font-size: 10px; } .nav-div{ margin-left: 12px; margin-right: 15px; margin-top: 9px; font-size: 10px; font-family: Verdana; } .nav-bg{ background: url(images/nav-bg2.jpg) no-repeat; height: 89px; } /* Nav Linsk */ .home{ width: 81px; height: 31px; } .roster{ width: 82px; height: 31px; } .forums{ width: 87px; height: 31px; } .join{ width: 80px; height: 31px; } .servers{ width: 91px; height: 31px; } .info{ width: 118px; height: 31px; } .dl{ width: 120px; height: 31px; } .irc{ width: 120px; height: 31px; } So, is there an alternative to using div tags, do I put the code in the CSS or is there something else? Sorry to be such a bore guys, but ive been trying this for ages and it just doesnt want to work...Ignore the content too - this is for my ICT coursework. Thanks again guys, and sorry for the huge post! TracNav Hi - so I'm a bit of a noob to all this html business, but have done a bit of C at uni. Basically I'm embarking on a little home project trying to create a notepad web app- that way i can have it in my bookmarks, as an app on my iphone, as a webclip on my mac's dashboard etc. I'm hosting it from my dropbox, got that bit sorted. I thought I had it sorted when i found contenteditable, but alas no ios support, so I was wondering if anyone new of an alternative, basically all i want is a text box thats editable, a save and a refresh button. Any help greatly appreciated, Thanks, Geoff. I was wondering... I really don't want to use Iframes on my website, because everybody tells me they're really unreliable. What I'm trying to do is make it so that my site navigation code is in a seperate file than the rest of the page, so if I need to update it I don't have to redo fifty-something pages. I've heard this can be done, but I have no idea how. Hello, I have an image that I want to make "float" above a small green bar, so that it sticks out above it. I have been able to achieve the effect with the <layer> tag, but the problem is that it only displays correctly in Firefox and not in IE. Also, I want to avoid the layer tag since it is not universally supported. Here is an example with the layers: http://dqnmusic.googlepages.com/indexenlayer.html Here is what it looks like when I try to avoid layers: http://dqnmusic.googlepages.com/indexen.html Is there away around the layer tag that can still achieve the effect I want? I am currently designing a site for my band, we require an mp3 player to be embedded into the site, but dont want the player to be reloaded (and therefore restarted) everytime a new link is visited - basically the music should continue to play no matter what "page" is visited and without interruption. The mp3 player we are using is xspf_player. I am able to use css and html fairly well and have a little experience with php. I know one way to do it is to put the player in a frame and then all the other content in another frame and just have that frame updating when links are clicked, but I think frames are ugly. Is there any other way I could implement this feature, perhaps using php or css/divs? My thinking was to have all of the content on just one page and have different "sections" becoming visible or invisible but it seems too lengthy for such a simple problem. Am I just being stupid and overlooking the simplest method? Thanks in advance, Matt I have a website build with frames. I have a section called "News" that I want to be able to put the most updated news in, similar to a blog. I want a blog style interface, that way I don't have to edit the HTML of the page every time I want to add a new piece of news. I do not want an SQL based blog however. I've looked into some PHP based blogs, but it "looks" too much like another website loading inside this frame (which I know it IS, but I don't want to give that appearance). My website is *White* so is there a solution to adding new news in a blog style format without an entire blog inside the frame? I just want to be able to easily add new news to an HTML page without actually going in an editing the HTML. How do other websites deal with adding news to a news page so that a client could easily edit their own news? Thanks! I'm adding some ad sense code into my second side bar of my blog. However i have a large widget image which i have placed in my first (left) side panel and it's taking over both panels. I'm un-able to add a widget into the second (right) side pannel as it overrights the code for the right side pannel for 'archives' and 'blogroll', which is fine. But i'm wanting to place some adsense code under my large image in the right side, but the ad sense code over rights the image! So, i need to add a bunch of paragraphs to make it shift down lower, i'm using close to 30 <p< </p> so i can get the adsense code low enough to not cover over the left panels large image. So i'm wondering, is there a smarter, or better way of getting this code down lower? I know i could use CSS and a margin, but i'm not really sure how to make that change. Is there a HTML way of doing this, or is the large amount of spaces i've put in ok? Thanks! www.nikkisblogspot.com if my description was a bit confusing. PS. Whats with IE? My widgets are all over the shop and some aren't even showing?? Hi I want several features on my homepage to repeated throughout the website on every page, such as the sidebar, the logo etc. In Dreamweaver, i can link the homepage logo to another page but it won't let me link it to more than one. Is there a command or piece of code that will link each feature to all the pages on the website? Thanks in advance Ox http://tinypic.com/r/1t4igj/5 How can I make a floating social media sidebar like this one? Hi guys I was hoping someone could tell me what is the code for the sidebar nav in this site: http://cloud9fabrics.com/ I really liked it and was hoping to use it in my site, but I couldn't figure it out with all the text and scripts. Could anyone kindly tell me the code so I can use it? Thank you so much! Natalie Hi, I got this template, ( see picture below) Could someone help me to get rid of the side bar on the left but everything else should be as it is. I've attached the index.html as well as the style.css file. Thank you hello all, i am trying to make a sidebar menu like the one at http://www.famousfootwear.com/Shoppi...ts.aspx?N=6208. the idea is that the user would be able to narrow their search, and as they refine it the links that do not apply would collapse. i have been searching for a while and i have no idea what kind of menu i am looking for so if there is a name for this sort of thing i'd love know. or if there is a template? thanks in advance, i need a shove in the right direction! Hello im new as you can see In Firefox this website "http://gregg.hostzi.com/" (Friends death metal band, has swearing in it) The alignment of the news bar is in the correct position. This is what i want it to look like. When people surf in Internet Explore they get the sidebar all messed up as you can see. My question is how do i align back up? so looks like what it is in Firefox. I hope i have explained what is needed, please ask if you need any further information. Thanks alot. Really hoping someone here can help me! Ok so, I am using the theme he http://www.tumblr.com/theme/10375 Basically, I was trying to change the width of the entire theme to my liking. So in the coding I changed every "900px" to "600px" The code: http://www.heypasteit.com/clip/08PT However in doing that, the "sidebar" of the theme moved down to the footer and I've been looking through the code, trying to change some different things and I just can't figure out what to do to bring it back to the right side. Please help? Thank you kindly First, people were saying *frames* were bad for a lot of reasons... *then*...they were saying iframes were bad...for the same reasons! So..if frames and iframes are so bad, what is the alternative that has the same functionality as frames and iframes (parts of the screen can change *and* scroll, controlling one side with the other like a 'menu' on the left and 'contents' on the right which changes). Hello, I have about 25-30 pages on my site. It has a link navigation menu and a sidebar on the left with newsletter opt in, products for sale, etc... I was wondering if there was a way to change/ edit the contents of the sidebar on EVERY PAGE without having to manually go in and change the updated HTML code on every single page. Is there a script that i can use to make this happen that I can just edit the sidebar and it will "update" the sidebar on all 30 pages accordingly?? Rather than manually doing this 30 times for every page my website is http://www.optimumtennis.net thanks in advance |