Webmaster Forum

Go Back   Webmaster Forum > Web Development > Web Design Lobby

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.


Reply
 
LinkBack Thread Tools Display Modes
Old 05-09-2009, 11:45 PM   #1 (permalink)
Junior Member
 
Join Date: 02-13-08
Posts: 22
iTrader: 0 / 0%
Latest Blog:
None

pchieng is liked by many
Can't Format Table

Hello,

I'm trying to add these rss/subscriber buttons on my blog: http://www.frugalshoppingideas.com/ on the right side. I'm trying to make it so the text ("Subscribe to Me") is all in one line rather than wrap around. They're in a table but there is a class/id that is limiting the width to 130px:

#sidebars table {
width: 130px;

}

I tried creating a separate class:

.table1 {
width: 300px;
}

But it's not working..

Someone else told me to change the width with local styling to override the external css..ie: <table width="200px">

But that didn't work either. I'm not sure if there are other classes/ids that are affecting this table. Can someone please take a look at the site/code and help!!

Thanks!
pchieng is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-10-2009, 01:48 AM   #2 (permalink)
Contributing Member
 
Join Date: 05-09-09
Location: Namibia
Posts: 63
iTrader: 0 / 0%
Namibnat is on the right pathNamibnat is on the right path
Hi Pchieng,

I am brand new on the forum, so you may get a better answer from someone else. I thought of a couple ways you should be able to solve it.

It seems strange that playing around with the table's width doesn't work. You could change the width of the 'td's in the table, and just make the table's width auto.

You could also just delete the table completly and just do the adjusting with div tags.

for example:
<div id="wholeBox">
<div class="eachBox">
<p><img....width, height>
<br />
text...</p>
</div>

<div class="eachBox">
<p><img....width, height>
<br />
text...</p>
</div>

</div>

for the 'wholeBox' with the css clear margins etc

and then for the 'eachBox':
clear margins,
set 'width:50%;'
set float "float:left;"

and it should work and you don't need to have it in a table or have specific widths for it at all.
Namibnat is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-10-2009, 11:46 AM   #3 (permalink)
Moderator
 
Join Date: 02-10-07
Location: Central Kentucky
Posts: 1,289
iTrader: 2 / 100%
Latest Blog:
None

ScriptMan is a web professional of the highest orderScriptMan is a web professional of the highest orderScriptMan is a web professional of the highest orderScriptMan is a web professional of the highest orderScriptMan is a web professional of the highest orderScriptMan is a web professional of the highest orderScriptMan is a web professional of the highest orderScriptMan is a web professional of the highest orderScriptMan is a web professional of the highest orderScriptMan is a web professional of the highest orderScriptMan is a web professional of the highest order
I did not look at your code but as a general rule columns and tables are included inside a container. Increasing the width of the table will have no affect unless the container size is increased by the same amount or the other divs/tables are reduced by that amount.

Think of boxes inside a bigger box. The inside boxes can not be larger than the container.
__________________
These forums are as good as the posts that you contribute to them.
~~
ScriptMan
Webmaster Help Articles
Domains & Sites For Sale by Owner
ScriptMan is online now  
Add Post to del.icio.us
Reply With Quote
Old 05-11-2009, 03:18 AM   #4 (permalink)
Contributing Member
 
Join Date: 05-09-09
Location: Namibia
Posts: 63
iTrader: 0 / 0%
Namibnat is on the right pathNamibnat is on the right path
Re: Can't Format Table

Hello,

I am sorry, you asked me for a response in a private message, but I am still to new to the forum to send a private message back. I will try to help you here instead. Please remember that I am also just a beginner

When I said 'clear margins' I meant getting rid of unwanted space. Different browsers have different defaults and so on. So often when you are working in css you do something like:

someElement{
margin:0;
padding:0;
border:0;
other_stuff:etc;
}

In your case the css file has already set all the margins to 0 (if you look near the top it says:
*{
margin:0;
padding:0;
}

I wouldn't do that but don't change it now or your site will be a mess.

Here I what I suggest you do:

1. Color the background so you can see what you are doing. If you have to work with live changes, use a sort of neutral color that doesn't look to bad. If you work with a file on your hard drive, then make it red or yellow, so you really know exactly where you are working:

#sidebar table{
background-color:#ffffaa;
}

Now you can see it and you know what you are working with.

2. Now, if you want to keep it in a table, you can change the width from a fixed width to 100%. This fills that whole space which is confined by the sidebar div tag. Now it fills the space. You can do text-align to center it, or you can add padding or right align. When you have it right, don't forget to just delete the background-color tag, which is just there to show you where your table is.

#sidebars table {
border:0;
background-color:red;
width: 100%;
text-align:center;
}

If you want more specific control, rather than set the background-color for the whole thing, rather do this:

#sidebar table td {
background-color:purple;
}

and then you can work with aligning each part of it.

3. You could get rid of the table and use various things such as a list with floats to get it right, but if you don't know css that well, it's probably easier just to stick with the table for now. It can get very messy.

Cheers
Namibnat is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading data form table to table? rob7676 Coding Forum 1 11-04-2008 12:37 PM
Table based or table-less designing? zeldaze Coding Forum 3 07-03-2008 08:37 AM
Showing data from a table based on infos from another table! anarchoi Coding Forum 0 06-16-2007 05:58 PM
HOW TO FORMAT CD-ROM ilajeni Tech Support Forum 6 08-15-2006 02:15 AM
Table format problem RonHollingsworth Web Design Lobby 2 03-09-2004 11:53 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 11:17 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.