473,405 Members | 2,287 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,405 software developers and data experts.

Why is my grid collapsing?

I have a html file on CD, when I view from this sourse (useing Safari) the grid holds, however when I coppied this file to my hard drive and open it from there the grid falles apart. (divs on the row drop down rather than remaining on the row). I do not know if this a problim with my code or with my laptop.
Dec 9 '10 #1
5 1575
JKing
1,206 Expert 1GB
Can't help you unless you provide some code.
Dec 9 '10 #2
sorry about the lack of code in my last question.
To recap the problim is my grid is colapising, The code is copied from a file I saved to disc a while ago. When I open this file from the disc the grid is fine. when I copy this file to my hard drive and open it from there the grid colapses. I am working on an iBook G4 wseing textedit to write the code and Safarie to view the page. the code below is for a very simple grid. I nave put an a,b and c in each of the divs so I could see the grid when viewing in Safarie.

thanks a mill !!!!!

[code]

<html>

<head>

<title>

index

</title>


<link rel="stylesheet" type="text/css" href="css/reset.css"/>
<link rel="stylesheet" type="text/css" href="css/960.css"/>
<link rel="stylesheet" type="text/css" href="css/text.css"/>
<link rel="stylesheet" type="text/css" href="css/stylesheet.css"/>


</head>

<body>


<div class="container_12">
<div class="grid_12" id="spacer1">a</div>
<div class="clear"></div>

<div class="grid_6">b</div>
<div class="grid_6">c</div>


</div>

</body>

</html>

[code]

ps: I am quite new at this and ask forgivness for any stupidy desplayed in my question
Dec 13 '10 #3
JKing
1,206 Expert 1GB
When you copied the html file did you copy the related CSS stylesheets?
Dec 13 '10 #4
I coppied all <link rel= tags from origional disc, includeing the file
css/stylesheet.css the code so far on this file is very basic.

style sheet code below.
[code]
div.spacer {
background-color : #8FC73E ;Â*Â*
}

div#spacer1 {
height:60px;
background-color : #8FC73E ;
}

div#coll1
{float:left;
height:35px;
with:460px;
}Â*
[code]
Dec 13 '10 #5
JKing
1,206 Expert 1GB
Okay so you should have 1 html file and 4 css files. The css files should be placed into a folder named "css" that is in the same directory as the html file.
Dec 13 '10 #6

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

Similar topics

0
by: Spartanicus | last post by:
I've been caught out by what I thought was an Opera 7.5p1 issue: http://www.spartanicus.utvinternet.ie/test/opera7.5p1_css_background_image_issue.htm but as was pointed out to me this is actually...
5
by: Borris | last post by:
<div style="background-color: blue; width: 500px; height: 300px"> <div style="background-color: red; margin-top: 100px; margin-left: 100px; width: 300px; height: 100px"> </div> </div> Where...
4
by: rigga | last post by:
Hi, I am relatively new to php and am currently working on a site where I need to use a collapsing menu system. I have written the code to do this however I am completely at a loss to do one...
2
by: Stanimir Stamenkov | last post by:
I'm trying to clear some sizing issues relative to the initial containing block and the root document element. The sample document I'm trying with: http://stanio.info/viewport_fill.html ...
1
by: yb | last post by:
Hi, I'm looking for clarification of css 2.1 specification in section 8.3.1 "Collapsing Margins" The 6th bullet reads "If the top and bottom margins of a box are adjoining ..." I won't paste...
6
by: Jack | last post by:
Hello, I would like some advice on how to disable the behavior of treeviews to expand and collapse when double clicked upon, but still allow the user to use the plus and minus on each node. ...
3
by: Simon Harvey | last post by:
Hi all, Can anyone tell me what the easiest way to achieve a collapsable panel area in a datagrid is? Do I need to find a third party panel control or does the datagrid/gridview somehow support...
5
by: SlowArrow | last post by:
Here collapsing seems to work differently in vb.net 2005 from that I use to see in vb.net 2003: Using the collapsing in vb.net 2003 shows the whole interface of the methods, subroutines,...
13
Chrisjc
by: Chrisjc | last post by:
I am in need of an expanding and collapsing code… The goal is To be able to click a PICTURE IMAGE and expand to show information Reason for this is I have 3 TABLES of information of about ...
1
by: Jahedx99 | last post by:
Check out the site: www.progtalk.com. They have a great article to expand and collapse rows of a grid. The cool part it, that the expanding and collapsing happens using Javascript. I think the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.