PDA

View Full Version : DreamWeaver/Html code thingy :)


Markpyro
12-17-2004, 9:50 PM
(mmmm, I like arial)

Im kind of new to the HTML thing, but I'm getting better. Anyways; I created a template in photoshop, sliced out everything I wanted, saved optimized in Imageready, and then transfrerred to Dreamweaver. Now, I want to make it so the Title bar and text box extends to fit each person's screen, as Warboards does. Would I have to make frames or something else to do this? Or am I not explaining well enough...?
By the way, the size is 800*600 px.

Uuugggg
12-18-2004, 1:25 AM
in whatever tables you use, do <table width=100%>. Should work, since you're using tables, right?

TranquilNightElf
12-18-2004, 9:22 AM
Or you can define a style for the tag you want and use width:auto

TheBB
12-18-2004, 10:56 AM
Can we see the page? Easier to get specific, then.

OboeGuru
12-19-2004, 4:12 AM
Or you can define a style for the tag you want and use width:auto
Tables do it significantly cleaner and with less code.
For a one-time-use element, it's better to use a one-time-use method of approach.

TranquilNightElf
12-19-2004, 2:23 PM
Yeah I guess but sometimes I prefer to use styles as they give you more flexiblity if you want to change things in the future.

Markpyro
12-20-2004, 8:52 PM
Is there a function on dreamweaver that can set tables, or is there a way I can slice my image in photoshop, then convert it to a table in Dreamweaver?

WeekendLazyness
12-20-2004, 9:32 PM
Tables do it significantly cleaner and with less code.
For a one-time-use element, it's better to use a one-time-use method of approach.
Nested tables (or any tables) can get extremely messy. I prefer divs and CSS.

AJ
12-21-2004, 4:08 PM
css is the cleaner approach and has many bonuses. i'm a huge fan of css.
however, there are many sites and layouts that tables are the much more appropriate approach to.

OboeGuru
12-21-2004, 4:36 PM
I'm a fan of DIVs and CSS for items that elements you're likely to be using over and over, but for a single block element, it makes far more sense to define everything having to do with it where it's used.

Nested tables are only messy if you're inept at using them. :Þ
In my experience, DIVs have far more potential to create mess, as this is not what they are designed to do, even though the capability exists.

If we're talking about something like a single, unchanging header that gets used on every different page, the most efficient method for handling that would be to use PHP or SSI to import a small block file containing all the code for the header, not redefining the code n every page and importing the CSS definitions, which would be what you are arguing for.

AJ
12-21-2004, 4:49 PM
for example, i find that the css used throughout WarBoards is good.. however the display of the forumhome is left to nested tables.

it's needlessly complicated to clear that up with divs, etc.

Markpyro
01-02-2005, 8:34 PM
Ahh.
Im about 50% proficient with CSS, and (for the site I'm working on) I use dreamweaver and do basicly no HTML coding.