Jump to content

miles5150

Members
  • Posts

    23
  • Joined

  • Last visited

miles5150's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Many thanks for your help ste,I had to fiddle with your versiion a bit to get it to display as I wanted but it seems to have done the trick.Just so I know for future reference any idea which particular css styles were responsible for the page not scrolling down to the footer in IE5. I'm still none the wiser really and it would be nice to know. I still don't really get why your version with the floats worked and mine didn't. All the best.Justin
  2. Hi you friendly, frolicksome people.I have a problem with the display of my first ever site in IE6. Any help would be so very much appreciated.The page is fine without a style sheet attached so it must be something to do with the style sheet but I'll be damned if I can work it out.My site addy is "justinmileswebdesigner.me.uk"and this is my default style sheet info. Admitedly, I'm working on making this style sheet more organised and compliant but if you can spot the piece of css that stops IE6 from scrolling down to the footer that would be great and I'll also learn something. Every other browser seems to be fine.Many thanksjustin -------------------------------------------------------------------------------------------------------------------/* justinmileswebdesign default CSS Style sheet */ body { font-family: Garamond, "book antigua", "Times New Roman", serif; background-image:url(../Images/Bg-border.gif); /*background-color: #669;*/ padding:0; margin:0; border:0; color:#006; } #container { background-color:#eee; width:800px; position:relative; margin:0 auto; border:0; padding:0; } #pgheader { background-image: url(../Images/Blue-page-header2.jpg); background-repeat: no-repeat; width: 800px; border: 0; border-bottom: 40px solid #eee; margin: 0; padding:0; text-align: left; height: 190px; position:absolute; top:0; left:0; } #pgheader img { border: 0; margin: 0; padding: 0; width: 351px; height: 80px; position: relative; left: 0; top: 75px; text-align:center; padding-top: 10px; font-family: "Arial Black"; }/* Top Navigation section */ #nav { font-weight:600; font-family: "lucida sans", verdana, arial, sans-serif; font-size: 14px; position:relative; top: 10px; left:0; padding: 10px 0 10px 20px; } #nav li { display: inline; } #nav ul { text-align: right; margin-right:15px; } #txtmag { position:absolute; top:0; left:0; padding: 10px; margin-top: 10px; }/* Main body styling (Including left and right column) */ #mainbod { margin:0; border:0; padding:0; color: #000; background-color:#eee; position: relative; left:0; top: 245px; width:800px; } h2 { font-size: 1.2em; border:0; padding: 0; margin: 0 0 20px 0; } h3 { font-size: 1em; border:0; padding: 0; margin:5px 0 10px 0; text-align:center; } #leftcol { /*float:left;*/ position:absolute; left:0; padding:0; border:0; background: #006 url(../Images/Left-menu_top.gif) no-repeat top left; width:150px; font-family: "lucida sans", verdana, arial, sans-serif; font-size:14px; margin: 0 0 0 5px; } #leftnav { background: url(../Images/Left-menu_bottom.gif) no-repeat left bottom; padding:0 0 20px 0; border-bottom:10px; margin:0; } #leftnav #home #cv #port #contact #info { text-align: left; margin:0; border:0; padding:0; position:absolute; left: 12px; } #maintxt { padding:0; border:0; margin:0; width:420px; position:relative; left:160px; margin:0 10px 0 10px; } #rightcol { background-image:url(../Images/right-col_gb.psd); padding:0; border:0; margin:0; width:170px; position:absolute; right:0; top:0px; margin-right: 10px; } #port ul { position:relative; left:-30px; } /* ---------- Page Styling ---------- */ #webdes { color: #fff; font-size: 24px; font-family: "Arial Black"; text-align: right; letter-spacing: 0.48em; text-transform: uppercase; padding: 0 50px 0 0; } #leftnav li { list-style: none; padding: 10px 0 0 10px; } #maintxt p { margin-top: 0; margin-bottom: 0.75em; text-align: justify; font-size: 1em; line-height: 1.6; } #maintxt ul { margin-top: 0; margin-bottom: 0.75em; text-align: justify; font-size: 1em; line-height: 1.6; } #rightcol img { padding: 0 10px 10px 0; } #maintxt a { color:#006; border-bottom: 4px solid #390; text-decoration:none; padding: 1px 3px 1px 3px; } #maintxt p { display:block; clear:both; } .portImg img { margin: 0 15px 15px 0; float:left; } #topnav a { color:#006; background-color:#eee; padding: 3px 10px 2px 10px; border-bottom: 6px solid #390; text-decoration: none; margin: 0 5px 0 0; } #topnav a:visited, #maintxt a:visited { color:#060; } #topnav a:hover, #maintxt a:hover { color:#fff; background-color:#006; } address { font-family: Garamond, "book antigua", "Times New Roman", serif; text-decoration: none; font-style: normal; } .uline { text-decoration:underline; }/* Footer styles */ #footer { text-align:center; font-family: "lucida sans", verdana, arial, sans-serif; font-size: 14px; background-color:#006; color:#fff; padding:5px 0 5px 0; } #footer li { display:inline; margin-right:5px; } #footer a:link, #leftnav a:link { color: #fff; text-decoration:none; font-weight: 600; } #footer a:visited, #leftnav a:visited { color: #ddd; text-decoration: none; font-weight: 500; } #footer a:hover, #leftnav a:hover { color: #6ff; text-decoration:underline; font-weight: 800; } #footer img {border:0; position:relative; left:-340px;}/* Image hyperlink style */ a img { border:0; }
  3. Many thanks for the above information.I can't believe I couldn't find it before yet tried several search terms and couldn't quite get there.Thanks for giving me the link.Top Geezer:)
  4. Hi all, Dont know if you can help?I am trying to offer 2 style sheets for my site. I want to allow the visitor to click a button on my web page which will activate the style change from one sheet to an alternate sheet and back again (I guess this will be an onclick event).Does anyone have or can anyone point me in the direction of some sample code which can do this? It would be nice to have an example to work along with as I am relatively new to javaScript usage and this seems especially tricky. Oh, yes! and I want to make sure my script is external to the page as a .js file probably with an onload event script also used.Any suggestions would be very much appreciated.Best regardsJustin
  5. HI,This is actually very easy.Yes your image will be saved in a rectangular size but you need to save it as a gif or png image. These support transparency ( I think you want gif89a "cant be arsed to double check sorry.). You can do your image/picture of your chosen T-shirt on a single colour background and then in a good photo editing suite (ie photoshop) you can make the background colour transparent.This means no matter where you place it on a web page the background will not be seen, it really will be transparent.Best wishesJustinMaster CIW Designer.
  6. miles5150

    colors in IE

    Actually, you could give the tags you want to affect a class name. Then you could shorten your CSS selectors which may be understood more easily.Instead of "tbody tr:hover td, tbody tr:hover td a, tbody tr:hover th a" you could have ".class tr:hover, .class td:hover, .class a:hover"Does that make sense? Something like that anyway.Best wishesJustin
  7. miles5150

    colors in IE

    Hi there,I have a funny feeling that just separating your css selectors will solve your problem. I know that means extra bytes of info in your css file but what you have written above may be to much for earleir IE versions to understand.If you separate the selectors and add attributes and values seperately it may work.Worth a try?Please feel free to correct me anyone.Best wishesJustin
  8. miles5150

    Colour

    As you have found out, RGB values and hash values are definately not the same. You should use one or the other, preferably do not mix, just save confusion.You can actually use RGB, hash or %age values.Best wishesJustin
  9. Hi there,If I remember correctly, I think the best way is te relatively position the main content div. The 3 divs inside can be absolute positioned. You will find that #id {position:absolute; left: 0; top: 0;} will put your left column at the left and top of your main div.The second and third column will need to be worked out depending on your column measurments.Please correct me if I'm wrong folks!Best wishesJustinMaster CIW Designer (But still learning too).
  10. miles5150

    font-size method

    Hi there,It is best to use relative font sizing so avoid pixels unless you want your fonts to stay the same size regardless of user preference. I would recommend em's as a good relative size. em's basically means that you are specifying the font size compared to the capital M of your chosen font. 1.5 em meaning that you want your font size 50% larger than the standard capital M.you can also use ex's if you prefer, this means that you are sizing your text compared with a lower case "x" from your chosen font-family.Pixel size is supposed to be absolute, which means that if a user wanted to increase fontsizes using the browser then your text would not change. This is bad from an accessability point of view as a person browsing your site should be able to change the default text size if they wish to.However, these days Firefox and Netscape still change your px test sizes, much to my annoyance.The choice I guess, is yours!JustinMaster CIW Designer
  11. Hi Kevin,W3C's description is right but you will find that margins and padding are treated differently in different browsers. Like you say if you have a box 10px by 10px and have a margin of 5px then any surrounding content would stay 5px away from your box, its basically a 5px space around your box. Padding is the space between your content and the box edges. I would definately recommend reading up on the box model and how it is translated differently in various browsers.RegardsJustin
  12. I know all about accessibility issues, this was a major part of my "Master CIW Designer" course. As stated above I am only wanting to fix font sizes for the large headings and the goodly sized clear navigation. My problem is with Netscape and Firefox which still enlarge the text even when specified in absolute sizes. I don't really want to be using images for Headings and links as this is rubbish semantically. The main content is specified in em's so this will still be changeable for accessability issues and I am linking a second style sheet so that users can click this instead of using the browser menu for larger text.All I want to do, is make sure that headings and menu's stay as they, so that my layout doesn't fall to pieces the moment someone increases the text size.How does important work then? May it be that I have to use Javascript instead of CSS to disable a browser menu option (not really a route I want to take).RegardsJustin
  13. Yes, basically my main content on the page is in em's so that it can change size in any browser. But I do not want to lose the look and feel of my headings or my navigation menu's, so these are in pixel sizes as they are a good size anyway I think.However, Firefox still increases the text size even when stated in pixels :)Rather a pain I think.I am adding a link at the top of my page which will invoke a different style sheet with larger text and hopefully most users will use this before the browser menu. But I was hoping I could somehow MAKE the text stay one size permanently.Thanks for your thoughts so far.Best wishesJustin
  14. Hi everyone, I have just joined and therefore this is my first thread.I'm Justin from Bournemouth in the UK, I have just passed my final CIW exam and am now a "Master CIW Designer" though I don't feel like it, lol.Basically, I'm putting together my portfolio site and am trying to create it in Strict format entirely with CSS.One of the things I want to do is offer the visitor an opportunity to choose a different font size with an extra CSS file but I also want to stop the browser from being used to change the font size of the menu's and heading text. In IE this is fine because I have used absolute font sizes for these (in pixels), but in FF for example, the increase text size menu option still increases the absolute font sizes on my web page.So without anymore waffle, can I somehow specify that a text size is fixed at its pixel chosen size?Any help would be appreciated.Best wishesJustin [/font]
×
×
  • Create New...