GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Ok - I admit it - I still use nested tables for gals - I need a good DIV tutorial.... (https://gfy.com/showthread.php?t=1043178)

EddyTheDog 10-25-2011 10:05 PM

Ok - I admit it - I still use nested tables for gals - I need a good DIV tutorial....
 
I have been playing with DreamWeaver all night and I can not get the hang of these new fangled 'div' things. :upsidedow

They don't align properly and pop in any place on the page they bloody well like!

I need it to work with the Repeat Region as well as I do most of my gals from a database, and that makes it even worse.

I have Googled until my fingers are numb and I can't find a tutorial that helps.

HELP before another laptop is launched out of the window.... :)

FlexxAeon 10-25-2011 10:18 PM

lol....i remember tables

if the web tutorials aren't doing it for you then you must be having a specific problem?

if you're not using divs with CSS then you're only doing it half right

webboy21 10-25-2011 10:23 PM

willing to help...for a price of course ;)

FlexxAeon 10-25-2011 10:26 PM

just offhand i'd do a gal something like:

CSS
Code:

.main {
    margin: 0;
    padding: 0;
    width: 800px;
}

.thumbholder {
    float: left;
    margin: 0;
    padding: 0;
    width: 200px;
    height: 200px;
}

HTML
Code:

<div class="main">

    <div class="thumbholder">
    <img src="thumb.jpg" />
    </div>


    <div class="thumbholder">
    <img src="thumb.jpg" />
    </div>

    (etc as many times as you need thumbs)

</div>

but thats bare-bones, basic, no style whatsoever. just a jump off point

EddyTheDog 10-25-2011 10:26 PM

Quote:

Originally Posted by webboy21 (Post 18515780)
willing to help...for a price of course ;)

Another couple of days/nights of this and I might even take you up on that! :)

EddyTheDog 10-25-2011 10:29 PM

Quote:

Originally Posted by FlexxAeon (Post 18515787)
just offhand i'd do a gal something like:

CSS
Code:

.main {
    margin: 0;
    padding: 0;
    width: 800px;
}

.thumbholder {
    float: left;
    margin: 0;
    padding: 0;
    width: 200px;
    height: 200px;
}

HTML
Code:

<div class="main">

    <div class="thumbholder">
    <img src="thumb.jpg" />
    </div>


    <div class="thumbholder">
    <img src="thumb.jpg" />
    </div>

    (etc as many times as you need thumbs)

</div>

but thats bare-bones, basic, no style whatsoever. just a jump off point

That does help.

I think it is the 'float' that I am getting wrong.

Thanks

FlexxAeon 10-25-2011 10:34 PM

Quote:

Originally Posted by EddyTheDog (Post 18515793)
That does help.

I think it is the 'float' that I am getting wrong.

Thanks

yeah floats can get ugly. hard to explain but varying div heights will make them go awry. they'll also go bad if they "think" they have more width to span across than they actually do. comes down to pixels being exact. to have full control over them make sure that divs that are floating one after the other are either all the same height or are somehow cleared inbetween.

munki 10-25-2011 10:37 PM

Cock Swallowing Sluts ftw...

EddyTheDog 10-25-2011 10:46 PM

Quote:

Originally Posted by FlexxAeon (Post 18515800)
yeah floats can get ugly. hard to explain but varying div heights will make them go awry. they'll also go bad if they "think" they have more width to span across than they actually do. comes down to pixels being exact. to have full control over them make sure that divs that are floating one after the other are either all the same height or are somehow cleared inbetween.

I think you have cracked my problem.

I have been adding content and letting the div deal with size (height) itself. I need to fix the size of the div and make sure it can fit the content. That combined with my confusion over floats is causing the issues I am sure.

So bloody obvious!

Should have come to GFY first :).

Thanks Again.

Damian

raymor 10-25-2011 10:46 PM

Here's a simple recipe.

Start with a fresh page, nothing but thumbs iin divs to start. That will isolate problems from other supposedly unrelated CSS or elements.

Your divs contain thumbs. Thumbs, being images, are sized in pixels, so the divs will be sized in pixels. Set the width of that class of divs to be a few pixels wider than the thumbs they contain. (Only images and things that align to images should be set in pixels, btw.)

divs are normally block elements, meaning that they force a new line. You don't want a new line for each image, so in your CSS set that div class to "display: inline;". You're DONE! You have neat rows of images!

You can also set those divs to float: left, but float takes some getting used to. It's tricky. Play with floats some time, but first get comfortable with the basics of the block model.

Now you probably want to put this group of thumbs in a real page. Hey, we just said the word "group". That's what a div REALLY is, a group. So will make all those separate thumbs into group by putting a div tag around them. In your css, set that div to have a solid green border so you can see the outline of the group of thumbs. This marks your selfs contained box of thumbs. Copy - paste it into your page. The stuff inside the green box, the thumbs, should look just the same as it did on own page, since it's self contained. If it doesn't, remove whatever CSS is accidentally affecting the thumbs. Don't "fix" it for now, just remove it. Later you can put it back, but make it more specific so it affects only what it's supposed to affect and doesn't break your thumbs.

Perhaps that group of thumbs, the big green box, needs to be resized, have margins added, etc. to better fit the page. You do that by applying CSS to he big green div, not what's inside it. You may want to set it's width as a percentage, such as 50% to be half the page width.

If something breaks, more often than not the fix is to GET RID of some CSS. Most pages have too many CSS positioning and sizing rules that make too many assumptions, rather than not enough rules. It's the browser's job to figure out how to make the page look "right" on any given screen in any given size of window. Let it do it's job, making limited CSS rules only where the browser doesn't make it look nice when left to do it's own job.

EddyTheDog 10-25-2011 10:52 PM

Quote:

Originally Posted by raymor (Post 18515815)
Here's a simple recipe.

Start with a fresh page, nothing but thumbs iin divs to start. That will isolate problems from other supposedly unrelated CSS ..........

More great stuff.

Thanks!

jimmycooper 10-26-2011 07:01 AM

Quote:

Originally Posted by raymor (Post 18515815)
Here's a simple recipe.

Start with a fresh page, nothing but thumbs iin divs to start. That will isolate problems from other supposedly unrelated CSS or elements.

Your divs contain thumbs. Thumbs, being images, are sized in pixels, so the divs will be sized in pixels. Set the width of that class of divs to be a few pixels wider than the thumbs they contain. (Only images and things that align to images should be set in pixels, btw.)

divs are normally block elements, meaning that they force a new line. You don't want a new line for each image, so in your CSS set that div class to "display: inline;". You're DONE! You have neat rows of images!

You can also set those divs to float: left, but float takes some getting used to. It's tricky. Play with floats some time, but first get comfortable with the basics of the block model.

Now you probably want to put this group of thumbs in a real page. Hey, we just said the word "group". That's what a div REALLY is, a group. So will make all those separate thumbs into group by putting a div tag around them. In your css, set that div to have a solid green border so you can see the outline of the group of thumbs. This marks your selfs contained box of thumbs. Copy - paste it into your page. The stuff inside the green box, the thumbs, should look just the same as it did on own page, since it's self contained. If it doesn't, remove whatever CSS is accidentally affecting the thumbs. Don't "fix" it for now, just remove it. Later you can put it back, but make it more specific so it affects only what it's supposed to affect and doesn't break your thumbs.

Perhaps that group of thumbs, the big green box, needs to be resized, have margins added, etc. to better fit the page. You do that by applying CSS to he big green div, not what's inside it. You may want to set it's width as a percentage, such as 50% to be half the page width.

If something breaks, more often than not the fix is to GET RID of some CSS. Most pages have too many CSS positioning and sizing rules that make too many assumptions, rather than not enough rules. It's the browser's job to figure out how to make the page look "right" on any given screen in any given size of window. Let it do it's job, making limited CSS rules only where the browser doesn't make it look nice when left to do it's own job.

Great stuff indeed. As ghetto as this may sound, and given that all of my galleries are done on a black background, my method has been to either scale or resize a black strip between each thumb. Kind of like this one.

http://i.imgur.com/Kt7W7.jpg

seeandsee 10-26-2011 07:05 AM

any TOOL to help me out with css, i dont want to code css :D

raymor 10-26-2011 08:29 AM

Quote:

Originally Posted by seeandsee (Post 18516391)
any TOOL to help me out with css, i dont want to code css :D

Plenty of them, but like any tool for doing any job the tool is only useful after you know how to do the job.

Are you asking for a spark plug wrench, or are you asking for a robot that knows how to change spark plugs because you don't know how? There is no tool that knows how to do graphic design.

PowerCum 10-26-2011 08:38 AM

We use a combination of divs and tables.

The main problem with divs is that img into them are not downloaded in sequential way, while with tables you can control what will show first on the surfer browser and what will not.

We also use compression to send all the html to the surfer as fast as possible.

In any case, you can achieve the same crap rendering speeds with tables and with divs. From all our tests, the fastest way is a combination of divs + tables.

blackmonsters 10-26-2011 08:52 AM

Tables work great.

I value the idea of "tableless design" just as much as I value this "<br />"

Fucking bullshit.

potter 10-26-2011 09:04 AM

Quote:

Originally Posted by blackmonsters (Post 18516667)
Tables work great.

I value the idea of "tableless design" just as much as I value this "<br />"

Fucking bullshit.

Only on GFY will you see some guy ranting about how he's still using html code techniques from 15 years ago like he's right in doing so.

FlexxAeon 10-26-2011 11:14 AM

Quote:

Originally Posted by potter (Post 18516702)
Only on GFY will you see some guy ranting about how he's still using html code techniques from 15 years ago like he's right in doing so.

i'm on a crusade to bring back html <layer> and image maps

amateurbfs 10-26-2011 11:59 AM

Quote:

Originally Posted by potter (Post 18516702)
Only on GFY will you see some guy ranting about how he's still using html code techniques from 15 years ago like he's right in doing so.

Lets not forget <font>

Naughty 10-26-2011 12:03 PM

I use tables all the time. The ones using wysiwyg only should be worried, not us;-)

seeric 10-26-2011 12:12 PM

www.lynda.com

Don't look back. Best learning site ever.

Evil Chris 10-26-2011 12:23 PM

I really should brush up on my CSS too.

Why 10-26-2011 03:40 PM

http://w3schools.com/ is a good source for basic tutorials.

Lace 10-26-2011 04:02 PM

Quote:

Originally Posted by seeric (Post 18517255)
www.lynda.com

Don't look back. Best learning site ever.

+1 :thumbsup

wehateporn 10-26-2011 04:29 PM



:winkwink:

I could do with brushing up on that stuff, with coding I tend to learn just what I need to

CyberHustler 10-26-2011 04:45 PM

I still use tables on some basic sites... fuck it.

blackmonsters 10-26-2011 05:26 PM

Quote:

Originally Posted by potter (Post 18516702)
Only on GFY will you see some guy ranting about how he's still using html code techniques from 15 years ago like he's right in doing so.

It's better just because it's new right?

:1orglaugh

Dragging your pants off your ass is new, but I don't think it's better than pulling up
my pants which is 1000's of years old.

:2 cents:

wehateporn 10-27-2011 03:11 AM

Quote:

Originally Posted by blackmonsters (Post 18517864)
It's better just because it's new right?

:1orglaugh

Dragging your pants off your ass is new, but I don't think it's better than pulling up
my pants which is 1000's of years old.

:2 cents:

It's one of those assumptions that people make "It's newer, so it's better!". It's like when everyone started by the first flatscreens and the colour was pretty poor. In some cases a basic html page can be exactly what the doctor ordered and can out-perform a fancy CMS :2 cents:

garce 10-27-2011 03:33 AM

"New" is a bit of stretch. A basic html page does not need tables. Honestly, I don't think I've used a table in six years. No need - I'm not posting spreadsheets.

TheDoc 10-27-2011 03:41 AM

Nothing wrong with a table in a gallery.... as long as you're not nesting them crazy, it's fine.

Total trash html pages convert just as good or bad, as perfectly created html pages.

Use whatever method allows you to create them the fastest and skip all the "you should do it this way" bullshit.

jimmycooper 10-27-2011 08:24 AM

I don't know how to do tables or css and even if I did, I would still want to lay out my galleries exactly as I do now via my 'black strip method'. Minimalist but effective like these.

http://www.starletsheet.com/tgp/nude...e-black-heels/
http://www.starletsheet.com/tgp/nude...ne-sunglasses/

Given that, and also considering that submitting galleries is only a small part of what I should be doing, would it benefit me to learn either? I obviously like to learn as much as possible about everything, but time constraints sometimes make it difficult

potter 10-27-2011 09:01 AM

Quote:

Originally Posted by blackmonsters (Post 18517864)
It's better just because it's new right?

:1orglaugh

Dragging your pants off your ass is new, but I don't think it's better than pulling up
my pants which is 1000's of years old.

:2 cents:

Listen you little ignorant shit. Maybe you should go pick up a book, go to school, or do some research before you go spouting off again. An education might come in handy for you. CSS isn't new, it's been around since 1996. The technique of using tables for layout is old. Mind you this is a fucking webmaster hub, you just basically stated to the world you don't have the simplest idea of HTML standards in front of hundreds if not thousands of webmasters. We're talking the most BASIC code known to man - HTML - you don't understand. Wow.

Since you seem to have your head so far up your own ass to understand anything I'll give you a brief summary. HTML tables were created to allow the creation of uniform tabular data on web pages. It was basically the equivalent of creating an xcel spreadsheet on the web. The reason you use tables for layout is because when the web first started no one knew what the fuck they were doing, and they found it easy to instead of using the table tag as intended - to use it for layout. There wasn't much of a learning curve, and it was far easier to pick up (mind you there wasn't much of any schooling at the time for this type of stuff, people had to learn on their own).

It's the equivalent of flipping a screw driver around and using the butt of it as a hammer, because you don't know any better.

But no, you go right ahead and spout off like you know what the fuck you're talking about. You go right ahead stating you don't understand HTML. It's not like you're doing so in front of webmaster peers or anything. It's not with two clicks of a mouse you could be learning your trade, understanding it, and bettering yourself. Instead you keep up the ignorant "I'm a backwards ass dude on the interwebs and even though I don't even know HTML, I'm going to post up completely incorrect statements to webmasters".

This isn't an argument. There's no opinion. HTML is HTML, there is no interpretation, it has very specific documentation on how it works and how it's designed. It's like spelling. You can go spelling things all fucked up as much as you want, but if you tell people it's ok to spell things wrong - you're just going to look like that much more of a moron.

magicmike 10-27-2011 09:19 AM

I think people are just happy using tables to create a simple gallery rather than css and div's etc.

We use css, especially in any modern functional site. But if I just need to space a few images, on a quick gallery a table isn't going to be bad, or throw up a table of links.

TheDoc 10-27-2011 09:24 AM

Quote:

Originally Posted by potter (Post 18519066)
Listen you little ignorant shit. Maybe you should go pick up a book, go to school, or do some research before you go spouting off again. An education might come in handy for you. CSS isn't new, it's been around since 1996. The technique of using tables for layout is old. Mind you this is a fucking webmaster hub, you just basically stated to the world you don't have the simplest idea of HTML standards in front of hundreds if not thousands of webmasters. We're talking the most BASIC code known to man - HTML - you don't understand. Wow.

Since you seem to have your head so far up your own ass to understand anything I'll give you a brief summary. HTML tables were created to allow the creation of uniform tabular data on web pages. It was basically the equivalent of creating an xcel spreadsheet on the web. The reason you use tables for layout is because when the web first started no one knew what the fuck they were doing, and they found it easy to instead of using the table tag as intended - to use it for layout. There wasn't much of a learning curve, and it was far easier to pick up (mind you there wasn't much of any schooling at the time for this type of stuff, people had to learn on their own).

It's the equivalent of flipping a screw driver around and using the butt of it as a hammer, because you don't know any better.

But no, you go right ahead and spout off like you know what the fuck you're talking about. You go right ahead stating you don't understand HTML. It's not like you're doing so in front of webmaster peers or anything. It's not with two clicks of a mouse you could be learning your trade, understanding it, and bettering yourself. Instead you keep up the ignorant "I'm a backwards ass dude on the interwebs and even though I don't even know HTML, I'm going to post up completely incorrect statements to webmasters".

This isn't an argument. There's no opinion. HTML is HTML, there is no interpretation, it has very specific documentation on how it works and how it's designed. It's like spelling. You can go spelling things all fucked up as much as you want, but if you tell people it's ok to spell things wrong - you're just going to look like that much more of a moron.

http://www.w3.org/TR/CSS2/tables.html

FlexxAeon 10-27-2011 09:39 AM

i love how these discussions always spiral into a big geek battle royale. like https://gfy.com/showthread.php?t=866382 - 4 pages of code yammering

Quote:

Originally Posted by potter (Post 18519066)
It's the equivalent of flipping a screw driver around and using the butt of it as a hammer, because you don't know any better.

:1orglaugh oh snap

blackmonsters 10-27-2011 09:50 AM

Quote:

Originally Posted by potter (Post 18519066)
Listen you little ignorant shit. Maybe you should go pick up a book, go to school, or do some research before you go spouting off again. An education might come in handy for you. CSS isn't new, it's been around since 1996. The technique of using tables for layout is old. Mind you this is a fucking webmaster hub, you just basically stated to the world you don't have the simplest idea of HTML standards in front of hundreds if not thousands of webmasters. We're talking the most BASIC code known to man - HTML - you don't understand. Wow.

Since you seem to have your head so far up your own ass to understand anything I'll give you a brief summary. HTML tables were created to allow the creation of uniform tabular data on web pages. It was basically the equivalent of creating an xcel spreadsheet on the web. The reason you use tables for layout is because when the web first started no one knew what the fuck they were doing, and they found it easy to instead of using the table tag as intended - to use it for layout. There wasn't much of a learning curve, and it was far easier to pick up (mind you there wasn't much of any schooling at the time for this type of stuff, people had to learn on their own).

It's the equivalent of flipping a screw driver around and using the butt of it as a hammer, because you don't know any better.

But no, you go right ahead and spout off like you know what the fuck you're talking about. You go right ahead stating you don't understand HTML. It's not like you're doing so in front of webmaster peers or anything. It's not with two clicks of a mouse you could be learning your trade, understanding it, and bettering yourself. Instead you keep up the ignorant "I'm a backwards ass dude on the interwebs and even though I don't even know HTML, I'm going to post up completely incorrect statements to webmasters".

This isn't an argument. There's no opinion. HTML is HTML, there is no interpretation, it has very specific documentation on how it works and how it's designed. It's like spelling. You can go spelling things all fucked up as much as you want, but if you tell people it's ok to spell things wrong - you're just going to look like that much more of a moron.

You have french fries in your sig.

:1orglaugh

http://t0.gstatic.com/images?q=tbn:A...i4ZutZzhMFZTot



All times are GMT -7. The time now is 07:02 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc