prose Posted October 10, 2007 Posted October 10, 2007 Where in my code is the first column?? I can't find it... [url="http://www.goodshepherdyouth.ca/layout24/layout24/index.html"]http://www.goodshepherdyouth.ca/layout24/layout24/index.html[/url] That is the test site.. I am trying something new... Can you find where to put info into the first column??
Starets Posted October 10, 2007 Posted October 10, 2007 well i opened the source in notepad. looks to be about line 22 or thereabouts is where the first column starts. could be commented better but most people leave commenting out anyway
dUSt Posted October 10, 2007 Posted October 10, 2007 Just do a "find" in the code and search for the text already in the first column, then you'll know where to add.
prose Posted October 10, 2007 Author Posted October 10, 2007 The problem is that there is no text in the first column, and whenever I figure out how to put some there, it doesn't stay in its own column, it pushes into the neighboring ones.
SJRod55 Posted October 11, 2007 Posted October 11, 2007 Would love to go to the mAze Oct 23 .... but its a long way from Albania. Nut I want to go!!!!!!
dUSt Posted October 11, 2007 Posted October 11, 2007 Okay, I just looked at the code. This is using a total CSS based design, and there's only three columns in there right now. You can't find where to put stuff in the first column because there is no first column.
prose Posted October 11, 2007 Author Posted October 11, 2007 And what is that big space to the left if it isn't a column?
prose Posted October 11, 2007 Author Posted October 11, 2007 I want a bigger column to the left than anywhere else, then 3 small ones to the right.
dUSt Posted October 11, 2007 Posted October 11, 2007 [quote name='prose' post='1400804' date='Oct 11 2007, 01:47 PM']Okay... How do I add one?[/quote]Well, you have to put your desired content inside of <div> tag, assign it a "class" and then edit the stylesheet to make that <div> appear as a column where you want it. Are you familiar with CSS? If not, you may want to study a few weeks before attempting all this.
dUSt Posted October 11, 2007 Posted October 11, 2007 [quote name='prose' post='1400805' date='Oct 11 2007, 01:47 PM']And what is that big space to the left if it isn't a column?[/quote] Empty space.
dUSt Posted October 11, 2007 Posted October 11, 2007 [quote name='prose' post='1400807' date='Oct 11 2007, 01:48 PM']I want a bigger column to the left than anywhere else, then 3 small ones to the right.[/quote] If you have no desire to dive into CSS and learn it, then you may want to just use a traditional HTML based layout, using normal tables with columns and rows.
Starets Posted October 11, 2007 Posted October 11, 2007 indeed. and a few years ago i couldnt even SPELL html
Starets Posted October 11, 2007 Posted October 11, 2007 I took a closer look at your source code now. I also looked at the CSS file in dreamweaver. I think I see the problem. Part of it might be that there are so many div elements in here that I wonder if some of the commands are overriding each other. From Line 420 down in the CSS file is where these yui-xx things are defined. these elements tend to have float:left or float:right defined. What that does is force the column either to the far left or the far right. I am very confused by the way the source code is written (and by the fact I am old anyway!), but it looks like whichever one of the yui-xx div elements is being used is setting float:right and leaving you wiht a left margin filling half the screen. Here are a couple examples from my own website of 2 and 3 column css driven designs. They aren't fancy but they get the job done: [url="http://dboyko.com/supporting.html"]http://dboyko.com/supporting.html[/url] [url="http://dboyko.com/theofanu.html"]http://dboyko.com/theofanu.html[/url]
abercius24 Posted October 12, 2007 Posted October 12, 2007 (edited) [quote name='Staretz' post='1400922' date='Oct 11 2007, 07:16 PM']I took a closer look at your source code now. I also looked at the CSS file in dreamweaver. I think I see the problem. Part of it might be that there are so many div elements in here that I wonder if some of the commands are overriding each other. From Line 420 down in the CSS file is where these yui-xx things are defined. these elements tend to have float:left or float:right defined. What that does is force the column either to the far left or the far right. I am very confused by the way the source code is written (and by the fact I am old anyway!), but it looks like whichever one of the yui-xx div elements is being used is setting float:right and leaving you wiht a left margin filling half the screen. Here are a couple examples from my own website of 2 and 3 column css driven designs. They aren't fancy but they get the job done: [url="http://dboyko.com/supporting.html"]http://dboyko.com/supporting.html[/url] [url="http://dboyko.com/theofanu.html"]http://dboyko.com/theofanu.html[/url][/quote] These are very clean examples. Nicely organized code. I recommend "borrowing" some of this css code for your own page, particularly the code relating to the page layout: [quote]/**************************************** ******/ /* Layout Divs */ /**************************************** ******/ #masthead{ padding: 10px 0px 0px 0px; border-bottom: 1px solid #cccccc; width: 100%; } #navBar{ float: left; width: 20%; margin: 0px; padding: 0px; background-color: #eeeeee; border-right: 1px solid #cccccc; border-bottom: 1px solid #cccccc; } #headlines{ float:right; width: 20%; border-left: 1px solid #cccccc; border-bottom: 1px solid #cccccc; padding-right: 10px; } #content{ float: left; width: 55%; }[/quote] Remember that your divs are section "dividers". The content you want to appear within each section must all exist between the opening and closing div tags. Div tags that exist within other div tags are simply sub-section dividers within the larger section dividers. Think of the tags as you did parenthesis in algebra. You can identity each div tag by the id element (which is basically its name). It should correspond to one of the css div names you see above (such as navBar). You should reorganize your code so that it follows the hierarchy in which it is designed by spacing everything out with tabs (just like you did when you wrote out an outline in grammar school). This will also help you find any tags you may have missed. And just to describe the div id's to you: masthead is your title banner section at the very top, NavBar is your left-side column, headlines is your right-side column, and content is your middle section. Just looking at your code, it looks like you are missing two closing div tags near the end (probably right before the footer section). That's probably the big reason everything is off. Try to clean it up and reorganize things. Edited October 12, 2007 by abercius24
prose Posted October 12, 2007 Author Posted October 12, 2007 I got the code from a new yahoo thing. I think I am going to stick to the css zen garden
abercius24 Posted October 12, 2007 Posted October 12, 2007 [quote name='prose' post='1401037' date='Oct 11 2007, 10:54 PM']I got the code from a new yahoo thing. I think I am going to stick to the css zen garden[/quote] Never heard of it. I hope it works out! By the way, Edmonton is beautiful country. What a blessing to live there! I did a gig with the Osmond Boys there back in 1991 and I remember the hospitality of the people quite well. Your website looks like it will be nice for your group, too. God bless!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now