473,385 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Problem with CSS and IE

4
Hello. :)
I've looked all around the internet for an answer to this, but I can't seem to find it anywhere. It's like a big gap. I've had some recommendations as to what it was, like the 3 pixel glitch, but it didn't seem to help.
This is my website here, and if you view it with Firefox, everything is fine.
But, if you view it with Internet Explorer (IE), it's like there is a big gap between the top of the page, and the text.
If you have a look here, you will see a Screenshot of what it should look like with Firefox, and Internet Explorer.
If there is anything you can do to help, please let me know. You can email me at Ashtonpatmurphy@gmail.com if it's needed.
Thank you. :)


-Ashton
Aug 6 '07 #1
6 1568
Are you using floats to position your DIVS? if so make sure you dont have any positioning (i.e. relative) on the DIVS too as this will mess it up when viewing in IE.

Also when viewing on a Mac the bottom boxes overflow to the right of the box. Are you using a main container to hold all the elements?
Aug 6 '07 #2
Ashton
4
Are you using floats to position your DIVS? if so make sure you dont have any positioning (i.e. relative) on the DIVS too as this will mess it up when viewing in IE.
I am using DIVS, but how do I know which ones are messing it up.. Trial and Error?

Also when viewing on a Mac the bottom boxes overflow to the right of the box. Are you using a main container to hold all the elements?
I'm not using a Main container. Text is just over main image.

Thank you! :D


-Ashton
Aug 6 '07 #3
could you post your CSS or link to it and I could have a look for you.

I was just asking how you have positioned your DIVs on the page, if you are using floats and positioning they can conflict.

I would also recomend using a container to hold all of your elements, that way you can ensure it all fits within a constrained width and you don't get any overlaps.

Anyways post your code and I'll have a look :)
Aug 6 '07 #4
Ashton
4
Sure thing :)

This is the CSS coding.. Sorry if it's a bit big :-/

Expand|Select|Wrap|Line Numbers
  1. body {
  2.  
  3.     margin: 0 auto;
  4.  
  5.     padding: 0;
  6.  
  7.     font: 9pt Arial, Verdana, Sans-Serif;
  8.  
  9.     background: #fff;
  10.  
  11. }
  12.  
  13.  
  14.  
  15. a {
  16.  
  17.     text-decoration: none;
  18.  
  19.     color: #2489DB;
  20.  
  21. }
  22.  
  23.  
  24.  
  25. a:hover {
  26.  
  27.     color: #808080;
  28.  
  29. }
  30.  
  31.  
  32.  
  33. a img {
  34.  
  35.     border: 0;
  36.  
  37. }
  38.  
  39.  
  40.  
  41. h3 {
  42.  
  43.     font-size: 1.3em;
  44.  
  45.     margin: 0 0 5px 0;
  46.  
  47.     padding: 2px 0px 0px 0px;
  48.  
  49. }
  50.  
  51.  
  52.  
  53. #bg { 
  54.  
  55.     width: 760px;
  56.     height: 919px;
  57.  
  58.     margin: 0 auto;
  59.  
  60.     padding: 5px 10px 10px 10px;
  61.  
  62.     background: url(bg2.gif) top left no-repeat;
  63.  
  64. }
  65.  
  66.  
  67.  
  68.  
  69.  
  70. #sadrzaj {
  71.  
  72.     padding-top: 9px;
  73.  
  74.     color: #303030;
  75.  
  76.     width: 736px;
  77.  
  78.     padding-left: 2px;
  79.  
  80.  
  81.  
  82. }
  83.  
  84.  
  85.  
  86. #toplinks {
  87.  
  88.     height: 20px;
  89.  
  90.     background: #2489DB;
  91.  
  92.     text-align: right;
  93.  
  94.     padding-right: 10px;    
  95.  
  96.     padding-top: 5px;
  97.  
  98. }
  99.  
  100.  
  101.  
  102. #toplinks a {
  103.  
  104.     font-size: 8pt;
  105.  
  106.     display: inline;
  107.  
  108.     padding-left: 8px;
  109.  
  110.     padding-right: 5px;
  111.  
  112.     background: url(strelica.gif) left no-repeat;
  113.  
  114.     padding-bottom: 3px;
  115.  
  116.     margin-right: 5px;
  117.  
  118.     color: #fff;
  119.  
  120. }
  121.  
  122.  
  123.  
  124. #toplinks a:hover {
  125.  
  126.     border-bottom: 2px solid #fff;    
  127.  
  128. }
  129.  
  130.  
  131. #floatbox {
  132.   float: left;
  133.   width: 100px;
  134.   }
  135.  
  136. p {
  137.   margin-left: 110px;
  138.   }
  139.  
  140. /* Hide from IE5-mac. Only IE-win sees this. \*/
  141.  
  142. * html #floatbox {
  143.   margin-right: 10px;
  144.   }
  145.  
  146. * html p {
  147.   height: 1%;
  148.   margin-left: 0;
  149.   }
  150.  
  151. /* End hide from IE5/mac */
  152.  
  153.  
  154. #zaglavlje {
  155.  
  156.     clear: both;
  157.  
  158.     margin: 0px 0 5px 0;
  159.  
  160.     height: 70px;
  161.  
  162.     background: url(header.gif) repeat-x;
  163.  
  164. }
  165.  
  166.  
  167.  
  168. #title {
  169.  
  170.     float: left;
  171.  
  172.     font-size: 14pt;
  173.  
  174.     font-weight: bold;
  175.  
  176.     padding-top: 25px;
  177.  
  178.     padding-left: 5px;
  179.  
  180. }
  181.  
  182.  
  183.  
  184. #title_info {
  185.  
  186.     float: right;
  187.  
  188.     height: auto;
  189.  
  190.     padding: 8px;
  191.  
  192.     width: 310px;
  193.  
  194.     margin: 10px 5px 0 0;
  195.  
  196.     border: 2px solid #fff;    
  197.  
  198.     background: #FFF5D9;
  199.  
  200.     color: #808080;
  201.  
  202. }
  203.  
  204.  
  205.  
  206. #title_info p {
  207.  
  208.     margin: 0;
  209.  
  210. }
  211.  
  212.  
  213.  
  214. #navigacija {
  215.  
  216.     clear: left;
  217.  
  218.     float: left;
  219.  
  220.     width: 150px;
  221.  
  222.     margin: 0 0 10px 0;
  223.  
  224.     padding: 0;
  225.  
  226.     font-size: 0.9em;
  227.  
  228. }
  229.  
  230.  
  231.  
  232. #navigacija ul {    
  233.  
  234.     list-style: none;
  235.  
  236.     width: 150px;
  237.  
  238.     margin: 0 0 3px 0;
  239.  
  240.     padding: 0;
  241.  
  242.     font-size: 1.1em;
  243.  
  244. }    
  245.  
  246.  
  247.  
  248. #navigacija li {
  249.  
  250.     margin-bottom: 4px;
  251.  
  252. }
  253.  
  254.  
  255.  
  256. #navigacija li a, #navigacija li a:visited {
  257.  
  258.     text-align: right;
  259.  
  260.     height: 20px;
  261.  
  262.     text-decoration: none;
  263.  
  264.     color: #fff;
  265.  
  266.     display: block;
  267.  
  268.     padding: 6px 8px 0 10px;
  269.  
  270.     background: #2489DB;
  271.  
  272. }    
  273.  
  274.  
  275.  
  276. #navigacija li a:hover {
  277.  
  278.     background: #A9CAEB;
  279.  
  280.     color: #286ea0;
  281.  
  282. }
  283.  
  284.  
  285.  
  286. .lijevo {
  287.  
  288.     margin: 2px 0 10px 0;
  289.  
  290.     padding: 3px 10px 5px 10px;
  291.  
  292.     width: 130px;
  293.  
  294.     border-top: 1px solid #DDD;
  295.  
  296.     border-bottom: 1px solid #DDD;
  297.  
  298.     color: #6B6B6B;
  299.  
  300.     background: #eee url(lijevo.gif) repeat-x;
  301.  
  302. }
  303.  
  304.  
  305.  
  306. .lijevo a, .lijevo a:visited {
  307.  
  308.     text-decoration: underline;
  309.  
  310. }
  311.  
  312.  
  313.  
  314. #desna_rubrika {
  315.  
  316.     float: right;
  317.  
  318.     width: 223px;
  319.  
  320.     margin: 0 0 10px 0;
  321.  
  322.     padding: 5px 13px 20px 10px;
  323.  
  324.     border-top: 1px solid #DDD;
  325.  
  326.     border-bottom: 1px solid #DDD;
  327.  
  328.     background: #eee url(lijevo.gif) repeat-x;
  329.  
  330.     color: #5D5D5D;
  331.  
  332.     line-height: 1.5em;
  333.  
  334. }
  335.  
  336.  
  337.  
  338. #desna_rubrika p {
  339.  
  340.     margin: 0px;
  341.  
  342.     font-size: 90%;
  343.  
  344. }
  345.  
  346.  
  347.  
  348. #desna_rubrika h3 {
  349.  
  350.     font-size: 9pt;    
  351.  
  352. }
  353.  
  354.  
  355.  
  356. #desna_rubrika a {
  357.  
  358.     display: block;
  359.  
  360.     height: 12px;
  361.  
  362.     padding-bottom: 4px;
  363.  
  364.     margin-bottom: 2px;
  365.  
  366.     border-bottom: 1px solid #ccc;
  367.  
  368. }
  369.  
  370.  
  371.  
  372. #podaci {
  373.  
  374.     margin: 15px 0 0 0;
  375.  
  376.     border: 2px solid #fff;
  377.  
  378.     background: #E5EFF9 url(plavo.gif);
  379.  
  380.     padding: 3px 3px 3px 6px;
  381.  
  382.     color: #70C256;
  383.  
  384. }
  385.  
  386.  
  387.  
  388. #podaci a, #podaci a:visited {
  389.  
  390.     display: inline;
  391.  
  392.     border: none;    
  393.  
  394. }
  395.  
  396.  
  397.  
  398. #clanci {
  399.  
  400.     margin:  0 0 5px 155px;
  401.  
  402.     padding: 0 10px 5px 6px;
  403.  
  404.     line-height: 1.4em;
  405.  
  406.     background: url(clanak.gif) repeat-x bottom left;
  407.  
  408. }
  409.  
  410.  
  411.  
  412. #clanci h2 {
  413.  
  414.     margin: 0px;
  415.  
  416.     padding: 4px 0 4px 0;
  417.  
  418.     font-size: 12pt;
  419.  
  420. }
  421.  
  422.  
  423.  
  424. #clanci p {
  425.  
  426.     margin: 0;
  427.  
  428. }
  429.  
  430.  
  431.  
  432. .datum {
  433.  
  434.     padding-top: 2px;
  435.  
  436.     height: 30px;
  437.  
  438.     margin: 5px 0 6px 0;
  439.  
  440.     border-top: 1px solid #eee;
  441.  
  442.     font-size: 80%;
  443.  
  444.     text-transform: uppercase;    
  445.  
  446.     color: #808080;
  447.  
  448. }
  449.  
  450.  
  451.  
  452. #lijeva_rubrika {
  453.  
  454.     margin: 0 250px 20px 155px;
  455.  
  456.     border-top: 1px solid #AFCEED;
  457.  
  458.     border-bottom: 1px solid #AFCEED;
  459.  
  460.     background: #E5EFF9 url(plavo.gif) repeat-x;
  461.  
  462.     padding: 5px 6px 5px 6px;
  463.  
  464.     line-height: 1.6em;
  465.  
  466.     text-align: left;
  467.  
  468.     color: #5D5D5D;
  469.  
  470. }
  471.  
  472.  
  473.  
  474. #lijeva_rubrika a, #lijeva_rubrika a:visited {
  475.  
  476.     text-decoration: underline;    
  477.  
  478. }
  479.  
  480.  
  481.  
  482. #lijeva_rubrika h2 {
  483.  
  484.     font-size: 1.5em;
  485.  
  486.     margin: 0 0 0.5em 0;
  487.  
  488.     color: #808080;
  489.  
  490.     padding-top: 3px;
  491.  
  492. }
  493.  
  494.  
  495.  
  496. #lijeva_rubrika p {
  497.  
  498.     padding: 0;
  499.  
  500.     margin: 0;
  501.  
  502. }
  503.  
Thanks again! :D
I'm very sure I've done something wrong. :P


-Ashton
Aug 6 '07 #5
drhowarddrfine
7,435 Expert 4TB
I am using DIVS, but how do I know which ones are messing it up.. Trial and Error?
Get the Firefox extension "Web Developer Toolbar". It has an outline tool that will pinpoint it for you.

IE screws up on widths. If the total width of your contained elements adds up to the total width exactly, you can almost count on IE doing it wrong among almost everything else. Try making the total width a few px wider. The term for this IE bug is "float drop".
Aug 6 '07 #6
Ashton
4
Okay, this is all great! But, so far, there's still no definite thing that makes it vary using IE. I know it has something to with the DIVS, and the "Web Developer Toolbar" is great! Thanks very much drhowarddrfine. :) So I guess I've just got to keep messing 'round with them and see what I come up with. Any other suggestions will help dearly. Thank you. :)


-Ashton
Aug 6 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class...
117
by: Peter Olcott | last post by:
www.halting-problem.com
18
by: Ian Stanley | last post by:
Hi, Continuing my strcat segmentation fault posting- I have a problem which occurs when appending two sting literals using strcat. I have tried to fix it by writing my own function that does the...
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
0
by: =?Utf-8?B?am8uZWw=?= | last post by:
Hello All, I am developing an Input Methop (IM) for PocketPC / Windows Mobile (PPC/WM). On some devices the IM will not start. The IM appears in the IM-List but when it is selected from the...
1
by: sherifbk | last post by:
Problem description ============== - I have 4 clients and 1 server (SQL server) - 3 clients are Monitoring console 1 client is operation console - Monitoring console collects some data from...
9
by: AceKnocks | last post by:
I am working on a framework design problem in which I have to design a C++ based framework capable of solving three puzzles for now but actually it should work with a general puzzle of any kind and I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.