Jump to content

brrrinalaska

Members
  • Posts

    3
  • Joined

  • Last visited

brrrinalaska's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. "Class Selectors" Yep, that's what I was looking for. Figured that out last night and was working on the coding in my head while I was at work. Came up with the same solution as your last entry. Pile all the CSS data into 1 Class for each paragraph. Then assign as needed. Already came up with a naming convention for it all too. All your suggestions are good alternatives though! Thank you for helping me confirm that Class Selectors are the way to go.
  2. I'll still be using divs obviously, but not nearly as much as I am now. Now that I understand spanning, I don't have to use div for everything to get my positioning. As far as inline goes, I'm only doing my positioning inline because I need paragraphs in different places on the same page. While each paragraph can use the same styling, it's the location that varys and as far as I know, the only way to handle it is in HTML, not CSS. For me it's not really CSS if it's written on an html page. So from my point of view doing the position inside a <span> is still html, not inline CSS. Back to my original question, is there some other standard method of defining the position for the paragraphs other than inline CSS as I'm doing above? The goal being to reduce the amt of code overall on the html side.
  3. Hey all,OK, been training myself on CSS, figured out some things along the way. When I did my first web sites, I started out sloppy then discovered using divs to keep everything fairly organized. In fact I was pretty proud of myself for having discovered divs layouts on my own. Soon after that I read things about CSS and figured that was the way to go. Just didn't have time then.So here's my deli-ma. I just figured out how to use class's, id's and spanning and am slowing getting away from my divs. On top of that, I can globally edit the pages now, or even just globally edit certain sections. WAY COOL!OK, lets say I need multiple paragraphs on the same page. I can format all the paragraphs and keep them nice a cozy with span calls rather than divs. But in order to put the paragraph spans where I want, I have to use position styling inline with the paragraph. Basically I'm making spanned paragraph boxes with just the positioning styling inline. The rest of the styling is done with CSS.Example:<p id="Paragraph1" style="position: absolute; z-index: 10; width: 500px; height: 200px; left: 248px; top: 183px;">Surrender all your Divs.</p>So am I going about location wrong? Even though it works, I don't want to spend 2 months recoding this to find out there's a more effective way.I'm not asking form some one to post some code for me. If I'm going about this wrong, give me some clues as to what commands and syntax I should be looking at.BTW. In 27 lines of code on my HTML page using CSS, it's unbelievable how much content is on the page for only 27 lines. CSS is indeed handy!Thanks a bunch
×
×
  • Create New...