• Welcome to Camera Craniums: The Photography Community for Enthusiasts.

Recent Posts

Members
Stats
  • Total Posts: 62,515
  • Total Topics: 5,735
  • Online today: 33
  • Online ever: 6,071 (March 12, 2026, 03:28:52 AM)
Users Online
  • Users: 0
  • Guests: 29
  • Total: 29
hohem
What made you feel good t...Weekly CompetitionsCanon kit to borrow (free...Dreaminess Happy Christmas 2025!NiceVeedi 2-Pack Photogra...DJI Osmo Action 6 Essenti...RØDE Wireless ME Ultra-co...NEEWER Snap On ND Filter ...BRDRC Pocket 3 Camera Bik...Lenovo LOQ | 15.6 inch Fu...DJI Mic 3 (2 TX + 1 RX + ...DJI Mic Mini (2 TX + 1 RX...DJI OSMO Action 5 Pro 4 3...DJI Osmo Action 5 Pro Adv...Post your best shots here

Dreamweaver trouble

Started by CML-1591, November 23, 2009, 04:36:31 PM

Previous topic - Next topic

picsfor

Quote from: Colin on November 24, 2009, 07:45:58 AM
The current standards are that tables are used for tabular data not positioning. All positioning should be done by css div's and the display and content should be separate css for display and html for content

I'm guessing i'm a bit behind with the standards then  ::)
Mind you, CSS was never something i engaged into to a great deal, but i supose i shall just have to go back and learn it all over again.
Now where's that link of Micks...

Darren1978

I rather stupidly volunteered to redesign my local fishing club's website for them...and I didn't have a clue about web design, not even the basics  :o

Anyway, having got myself a copy of Dreamweaver, a few books, a bit or research on the net I managed to cobble something together (chichester-as.co.uk for those of you who may like to take a look and let me know what you think ;) ) which I was rather pleased with  :)

Anyway, 'web-design' language was a complete eye opener and it took me a while to grasp the basics.  But if you were to ask me about css and html coding and how best to do it to make a site run better etc then I wouldn't know where to start!  WYSIWYG served me well  :tup:

CML-1591

Quote from: Colin on November 24, 2009, 07:45:58 AM
Quote from: picsfor on November 23, 2009, 08:39:49 PM
on a coding side - using plain html i would ahve used a table to insert you menu options as displayed on the webpage pictured.
you've defined a page with a width of 1000 pixels which is more than acceptable nowadays.
So just insert a single line table with the columns defined to set widths and colour and then insert you links...

If memory serves CSS does it in a slightly more refined manner. Never really got into it big time though!


The current standards are that tables are used for tabular data not positioning. All positioning should be done by css div's and the display and content should be separate css for display and html for content.

Back to the OP though you can do this with a float.

In this case you have one div for the header and then one each for the left and right content so the html code would be something like


<div class="header">
<div class="header_left">
left content here
</div>
<div class"header_right">
right content here
</div>
</div>


Then your css would be something like


.header {width:1000px; height:100px;}
.header_left {width:200px; float:left;}
.header_right {width:300px; float:right;}


This would give you a 500px clear space between the two divs.

Hope this helps.

Thanks Colin, I will have to give that a shot tomorrow when i can get on dreamweaver
Landscape photography is the supreme test of the photographer - and often the supreme disappointment. - Ansel Adams,

CML-1591

Quote from: CML-1591 on November 24, 2009, 10:36:28 AM
Quote from: Colin on November 24, 2009, 07:45:58 AM
Quote from: picsfor on November 23, 2009, 08:39:49 PM
on a coding side - using plain html i would ahve used a table to insert you menu options as displayed on the webpage pictured.
you've defined a page with a width of 1000 pixels which is more than acceptable nowadays.
So just insert a single line table with the columns defined to set widths and colour and then insert you links...

If memory serves CSS does it in a slightly more refined manner. Never really got into it big time though!


The current standards are that tables are used for tabular data not positioning. All positioning should be done by css div's and the display and content should be separate css for display and html for content.

Back to the OP though you can do this with a float.

In this case you have one div for the header and then one each for the left and right content so the html code would be something like


<div class="header">
<div class="header_left">
left content here
</div>
<div class"header_right">
right content here
</div>
</div>


Then your css would be something like


.header {width:1000px; height:100px;}
.header_left {width:200px; float:left;}
.header_right {width:300px; float:right;}


This would give you a 500px clear space between the two divs.

Hope this helps.

Thanks Colin, I will have to give that a shot tomorrow when i can get on dreamweaver

Will it matter that the code above is class and not id?
Landscape photography is the supreme test of the photographer - and often the supreme disappointment. - Ansel Adams,

Colin

#19
No problem if you change it to id's don't forget to change the . to # though.

CML-1591

#20
It worked!

Thanks a lot Colin!

:D
Landscape photography is the supreme test of the photographer - and often the supreme disappointment. - Ansel Adams,

Colin


This website is proudly hosted on Crocweb Cloud Website Hosting.


Camera Craniums is a participant in the Amazon EU Associates Program. This affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to products on Amazon.