Is there a way to prevent the style tag from applying itself to the whole page?

  • 2
  • Question
  • Updated 10 years ago
  • Answered
I have a style tag which allows the links to change color upon mouseover. However, I only wanted it for a certain section. I have other links further down the page but I don't want the same style applied to them. Is there a way to contain this style tag to a certain area or links?
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
  • thinking way too much

Posted 10 years ago

  • 2
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
i have this question too!
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Just create a new style tag further down the page just above
the other links.

or

Wrap the style in a "div" . (I'll have to double check this one)
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hey Boomer, thanks for the suggestion. I did try it but it just overwrote the existing style tag instead of being applied to a section. I'll just do something else instead.
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Well then why not try Lee's sugestion of just applying a style to each link as you need. That ought to work. In fact...that's what I'm doing.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Yes.. that'll work.. but way too much work for me. I have over 50 links! =P
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
50 links!... is that all? Heard of copy / paste. Haha
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
LOL... I thought that was lots! Tee hee... yes... copy & paste - I think I've heard of that somewhere! =P I'm too lazy!
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
what are you tyring to do? normally a style is set to make the whole page feel the same.
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
Littleus & Alex email me at admin@hexham.info
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Hi littleus,
Are you wanting to have your own custom domain name for your dejavuapparel site? If dejuavuapparel.info is available, that could be your domain name. When you publish your site you will be able to see what domain names are available. Does that answer your question?
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
can we make things like my new site.sports-info.info ?

alex
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
Littelus - email me and i will explain everything - its all very easy but it takes up too much thread space. Lee.
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
Lee,

A very kind & generous action to a friend.
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
littleus, i think its dejavuapparel.littleus.info, im just as confused as you!
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
Littleus - you now have http://littleus.info and http://dejavuapparel.info

email me and we'll get it up and running - both now point to Yola.
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
You must be made of money!
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
They have a sale on + i dont care about money - if i can make someone happy its been well spent :)

As John Lennon once said:
"you dont take anything with you but your soul"
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
:)
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
littleus if you are going to add styles to each link then like boomer says cut and paste is your friend but also if you press Ctrl and F in the html editor, then type in the search <a it will found all the links for you, just keep clicking next.

Its saved me hours of searching round like an idiot through mountains of code :)

Lee
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
PS. from your email - there are webmaster account tutorials here at GS.
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
What !! Really ? I never knew that. Just goes to show...you learn something new everyday. Ctrl and F you say. Thanks Lee.
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
i always knew it was a browser serach but i was suprised to find it also worked great in the editor - enjoy.