HTML - Div Size Possible?
I'd like my div to automatically expand when there is more text but I don't want it smaller than a certain size. Is this possible? Please look at the following site to see what I mean and click on the Writing tab. (The right hand div is what I'd like to fix--you see the text is cut off.) Thank you so much!
http://rkgrant.110mb.com/rkghome2.html Similar Tutorialsi have 2 frames in my parent frame say 1.htm ie left frame and 2.htm ie right frame now this 1.htm is quite a long frame and has a scrollbar and 2.htm is a short one i dont the scroll bar beside my frame 1 but want it to be for my entire parent window ie i wont to scroll both my left and right frames together how do i do that Hi! I have a page that contains a text area. What I want it to do is to change its size according to the size of the browser window. How can I make it do that? I did it once but just can't seem to remember how I did it. Thanks All: Working to update a previously designed website. Original design uses an <img> tag to create a top banner and another <img> tag to create a side banner. In each case there are mapped coordinates on each banner as links for the subsequent pages. Basic page design is as follows: Code: <table> <tr> <td> <img usemap="Map1"> <map name="Map1"> <area> <area> <area> </map> </td> </tr> </table> <table> <tr> <td> <img name="Map2"> <map> <area> <area> <area> </map> </td> <div> ***PAGE CONTENT*** </div> <tr> <table> The challenge is that the [PAGE CONTENT] varries in length througout the site causing some pages to be much longer or shorter than others. This causes some inconsistencey in the relationship between the side banners height and the page content. In other words in some cases the banner is exceptionally longer than the page content and the reader must scroll past significant "dead-space" before being brought to the lowest mapped links in the side banner; or... ...in some cases the side banner is significantly shorter than the page content causing the banner image to appear "poorly-fit" to the page design. I considered altering the 2nd table instance in the above design so that the banner is carried in a <td> tag that is adjacent to the page content and hopefully to allow the tag carrying the image to size relative to the <td> tag carring the content.... Code: <table> <tr> <td> <img usemap="Map1"> <map name="Map1"> <area> <area> <area> </map> </td> </tr> </table> <table> <tr> <td size="100%"> <img name="Map2"> <map> <area> <area> <area> </map> </td> <td size="100%" > <table> ***PAGE CONTENT*** </table> </td> <tr> <table> The problem I've found with this is that as the content size causes the image to "flex", either readablilty or image quality or both are effected, AND the mappings become inconsistent as the image coordinates constantly change. I've considered 2 solutions and am leaning toward one, but thought I'd post this and see if there are better ideas I'm overlooking. One idea was to add additional table rows inside the [PAGE CONTENT] table presumably creating a "defalut" page size that would never be smaller than a standard for the side banner. Problem: larger page sizes are still a problem as are the changing map coordinates My other idea was to return to the original page design listed first above and again settle on a standard side banner "height"... ...any page that was significantly longer than that height would be split to 2 or more pages with a [NEXT>>] button at the bottom of the page navigating to the additional content. Problem: ...possible complications splitting content... Benefit: ...consistent page design that allows a consistent side banner with navigable links... Question for the group: Does this sound reasonable? Are there better alternatives I am overlooking? THANKS IN ADVANCE FOR ALL INPUT!! hello i inserted an iframe to my page and i have buttons that wud open pages in the iframe but i want to iframe to resize itself when i open the page in it to the page size so i dont have any scroll bars and i have 100% height of the page of the iframe i set the height to 100% in the code but it doesnt really give me 100% and i end up getting 2 scroll bars one for the page and the other for the iframe for width it works perfectly as i set the width to 80% and it gives me 80% width of the page for the iframe it doesnt work for height though i just wanna get rid of the scroll bars of the iframe and still maintain the professional look of it by not having a fixed height with too much empty space help me please thanks Im using Dreamweaver and im using a table to layout my page. I have managed to get the table width to resize with the browser window but cant get the height to do it. I have a black bar along the bottom which I want to lock to the bottom of the browser window and resize with it but I just cant do it. I have attached the file below if someone can have a look for me it would be great! Cheers Peeps can html set the size of a page? such as 5" x 7" ? if so, what are the tags? Hello, im trying to set my screen size with a div tag to 1024x768 any help would be very helpful and i'd be very thankful A simple problem when I populate my combo using javascript my combo size changes (Problem is only on) Ie works ok in ff. My code is <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>123</title> <script type="text/javascript"> function test(){ var listFileClass = document.getElementById('listFileClass'); alert("listFileClass ="+listFileClass); for (var loop = 0; loop < 6; loop=loop+1) { var newDomainValueOption = document.createElement('option'); newDomainValueOption.setAttribute("value",loop); newDomainValueOption.appendChild (document.createTextNode(loop)); listFileClass.appendChild(newDomainValueOption); } } </script> </head> <body> <table> <tr> <td width="100%"> <select style="width:100%" name="listFileClass" id="listFileClass"> </select> </td> <td> <input type="button" value="test" onclick="test();"> </td> </tr> </table> </body> </html> I don't know what part of this html is making the pictures in my table compressed width wise but if someone could help that would be fantastic. Here is the code: <style type="text/css"> body,table, td, li, p, div, textarea {font-family:Tahoma; font-size:12pt; color:ffffff; font-weight:none;} table, td { background-color:transparent; border:none; border-width:0;} body{background-image:url(http://i7.photobucket.com/albums/y28...onlybkgd.jpg); background-attachment:fixed; background-repeat:no-repeat; background-position:bottom right; background-color:179f99; } body {scrollbar-face-color:179f99; scrollbar-shadow-color:ffffff; scrollbar-highlight-color:ffffff; scrollbar-3dlight-color:ffffff; scrollbar-darkshadow-color:ffffff; scrollbar-track-color:87f5f3; scrollbar-arrow-color:ffffff;} .text {font-family:Tahoma; font-size:12pt; color:000000; font-weight:none} .redtext{font-family:Tahoma; font-size:10pt; color:000000; font-weight:bold} .redbtext{font-family:Tahoma; font-size:10pt; color:000000; font-weight:bold} .orangetext15{font-family:Tahoma; font-size:10pt; color:000000; font-weight:bold} .lightbluetext8{font-family:Tahoma; font-size:10pt; color:000000; font-weight:bold} .whitetext12{font-family:Tahoma; font-size:10pt; color:000000; font-weight:bold} .blacktext12{font-family:Tahoma; font-size:10pt; color:000000; font-weight:bold} .nametext{font-family:Tahoma; font-size:10pt; color:000000; font-weight:bold} .blacktext10{font-family:Tahoma; font-size:10pt; color:000000; font-weight:bold; background-color:transparent} strong, b {font-weight: bold; color:000000;} a{font-family:Arial; font-size:12pt; font-weight:normal;background-color:transparent;} a:link{color:000000;font-weight:bold;font-family:Arial} a:active{color:000000;font-weight:bold;font-family:Arial} a:visited{color:000000;font-weight:bold;font-family:Arial} a:hover{color:000000;font-weight:bold;font-family:Arial} a.redlink{font-family:Arial; font-size:12pt; font-weight:normal;background-color:transparent;} a.redlink:link{color:000000;font-weight:bold;font-family:Arial} a.redlink:active{color:000000;font-weight:bold;font-family:Arial} a.redlink:visited{color:000000;font-weight:bold;font-family:Arial} a.redlink:hover{color:000000;font-weight:bold;font-family:Arial} a.navbar{font-family:Arial; font-size:12pt; font-weight:normal;background-color:transparent;} a.navbar:link{color:000000;font-weight:bold;font-family:Arial} a.navbar:active{color:000000;font-weight:bold;font-family:Arial} a.navbar:visited{color:000000;font-weight:bold;font-family:Arial} a.navbar:hover{color:000000;font-weight:bold;font-family:Arial} a.man{font-family:Arial; font-size:10pt; font-weight:normal;background-color:transparent;} a:link{color:000000;font-weight:bold;font-family:Arial} a:active{color:000000;font-weight:bold;font-family:Arial} a:visited{color:000000;font-weight:bold;font-family:Arial} a:hover{color:000000;font-weight:bold;font-family:Arial} </style> <style> table, tr, td {background-color: transparent; border: 0px; padding:2;} table table {border: 2px;} table table table {border: 16px dotted; border-color: 87f5f3; background-color: ffffff; background-image:url(); padding:0;} table table table table{border: 0px;} table table table table table, table table table table table </style> <style> } table table table table {border:0px;} .{content:"Text and Link Properties";} input {background-color:transparent !important;} td, div, input, textarea, a, table td div div font, div table tr td font {font-family:Verdana !important;} td, div, input, textarea, table td div div font,div table tr td font {color:000000!important; font-size:10pt !important;} .nametext, .whitetext12, .lightbluetext8, .orangetext15, .blacktext12, .blacktext12 span,.redtext, .redbtext, .blacktext10, .btext {color:000000!important; font-size:10pt !important;} a {color:000000!important; font-size:10pt !important;text-decoration:none !important; text-transform:none !important; font-weight:normal !important; font-style:normal !important;} a:hover {color:000000!important; text-decoration:none !important; text-transform:none !important; font-weight:normal !important; font-style:normal !important;} <style type="text/css"> table table table {width:400px; !important;} table table td img {display:none;} table table table td img {display:inline;} table td td {width:0px;} table {width:500px;} table table {width:400px; !important;} table table td {padding:3px;} table table table td {padding:0px;} table table table {width:400px !important; height:0px;} td.text td a img {display: inline !important; } table table table table table, table table table table table td { width:0px !important; padding:0px !important;} td.text a img {width:130px } td.text td.text a img {width:100px !important; } td td td div strong {width:200px !important; display:block;} .redblackfonttext14{font-weight:normal} textarea, input, font, a, table, td, div, b {font-size:10pt !important;font-family:century gothic!important;font-weight:normal!Important;text-transform:lowercase} span {font-size:10pt !important;font-family:century gothic!important;font-weight:normal!Important;text-transform:uppercase} embed, object {display:inline} .orangetext15, .blacktext10 { display:block; width:300px; font-size:10pt !important;} td.text td.text .orangetext15, td.text td.text table table div {display:none;} .thanks:mrk{.} .mct{www.myspace.com/contacttables} </style> Yeah it's my myspace page. Sorry I'm such a dummy at html..... Is there a way to make buttons larger? I have seen code for it but I am not sure how to use it.. Here is the a partial of the code I am using. Code: <form> <input type="button" value="Reset" onclick="document.applets[0].reset();"> </form> Here's my code: Code: <div align="center" style="background-color:#4D4D4D;width:1000px;height:30px;border:1px solid #00137F;filter:progid:DXImageTransform. Microsoft.Glow(color=#00137F)"> I can't get the DIV to change size. I know I haven't put 'Width="" height="" ' but that doesn't work. It's strange because usually I would've thought that would work. My website will have a picture that is cut in 3 parts (see below for the chop up). now my question is. I want the sides to gradually disapear if the browser window becomes smaller, as the main part of the website is displayed on the middle part of the website Say that the total size of the image is 1300px. and the respectively from left to right. the picture is chopped up in 250px - 800px - 250px. now if the browser is wide enough it would just show the whole 1300px of the website. however if the browser is at most able to show 1000px of the website, the side would reduce corespondingly showing the website as 100px - 800px - 100px. and that offcourse that the picture on the left side doesn't look weird. I hope everything is still clear. it bassically means that of the 250px of the left picture, the picture would be cut up from left to right, rather than the default right to left. thus cutting 150px away from the left and not the right. leaving the colors in the picture below, continue on flowing like they should. How would I go about doing this? hi, I volunteered to maintain this (uploads and linkage): http://www.collier-ese-reform.com/ if you go to the About Us page why is it so wide and doesn't "shrink" as some of the others? what can fix in that aspect? THANKS! How can I get the size of each frameset . I need to get the size wen the user drags any frameset.? Plz help me. Could someone give me some assistance on sizing a frame correctly? On the following page, I cannot seem to get the height of the background (behind the form) sized properly, leaving the line through the submit button. http://www.sutherlandlegal.com/contactus/index.html Appreciate any help... ok i have a page that opens another page without the toolbars, however the issue is that i dont know how to make them different sizes, like this page im including here is too small for what is actually on the page. I have to maximize the window. How do i html the code for the size page i want it to be. I hope I am sayong that correct. HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Home Certification</title> </head> <script language="JavaScript"> function loadMainWindow() { var win = window.self; win.opener = window.self; var newloc = "http://clas0as21.corp.cox.com/sdchealtop/framework/frameset.asp"; var ih = (window.window.screen.availHeight - 60) - 100; var iw = (window.window.screen.availWidth - 10) - 100; var it = ((window.window.screen.availHeight - 60) - ih) / 2; var il = ((window.window.screen.availWidth - 10) - iw) / 2; var features = "directories=no,menubar=no,location=no,toolbar=no,status=yes,scrollbars=yes*,resizable=yes" + ",width=" + iw + ",height=" + ih + ",top=" + it + ",left=" + il + ""; v1 = new Date(); v2 = Date.parse(v1); v3 = "pg" + v2; var oNewWindow = window.open(newloc, v3, features); oNewWindow.focus(); win.close(); } function window.onload() { try { loadMainWindow(); } catch(e) { popUpMessage.style.display = 'You Are Being Redirected!'; } } </script> hey all, working on some simple coding that is giving me trouble. here is what i have so far: HTML Code: <div style = 'position:absolute; width:auto; background-color:#DFD2FC;padding:10px;'> <div style = 'position:relative; background-color:#B6FCCC;'> <p>pair</p> <div style = 'position:relative; float:left; background-color:#FCE4B6; margin:5px; padding:5px;'> <p style = 'align-text:left'>1<br>2<br>moo<br>meow</p> </div> <div style = 'position:relative; float:left; background-color:#FCE4B6; margin:5px; padding:5px;'> <p style = 'align-text:left'>3<br>4<br>sdf<br>asdf<br>sdf</p> </div> </div> </div> however, it's not behaving correctly. i'd like the 'green' div to change in size according to the text within the 'yellow' divs. and then the 'purple' div should change size compared to the size of the 'green' div. i hope that's clear... any help? Hello Folks, Okay, I am trying to finally master this. I am working with a CSS Joomla layout that has some flash as main content (for images). I would like for this layout to resize based on the visitors screen size. I've played around with the % in width and so-forth. However my embedded Flash starts to scoot around the page as I change the size of the window. Can someone guide me on exactly how to do this so that "all" the info scales and stays in place. I am assuming that there will be an issue for the site getting really big if the person uses a massive screen (say 27inch plus) In that case how do you limit the size? Any help will be most appreciated. |