Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

jQuery rounded corners dont seem to work

New Here ,
Dec 15, 2009 Dec 15, 2009

Copy link to clipboard

Copied

This is my first time using jQuery.

Here is my link http://www.allthingsprintuk.co.uk/sidebartest.html

I am trying to achieve rounded corners on my sidebarcontainer (that houses my sidebarcontent list & my main image (the Boat)) using jQuery.

Not sure what I have done to my code to not make it work. Any Ideas?

Thanks in advance.

TOPICS
Server side applications

Views

446
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Dec 16, 2009 Dec 16, 2009

You have embedded your script blocks inside a style block:

<style type="text/css">

body {
     background-color: #F7A700;
}
-->

<script src="jquery-1.3.2.min.js" type="text/javascript" charset"utf-8"></script>
<script src="jquery.curvycorners.min.js" type="text/javascript" charset"utf-8"></script>

<script type="text/javascript">
$(document).ready(function(){
$('.sidebarcontainer').css({background: '#3f3f3f'}).corner('round 8px')
});
</script>

</style>

It should look like this:

<style type="text/css">

body {
  
...

Votes

Translate
LEGEND ,
Dec 16, 2009 Dec 16, 2009

Copy link to clipboard

Copied

You have embedded your script blocks inside a style block:

<style type="text/css">

body {
     background-color: #F7A700;
}
-->

<script src="jquery-1.3.2.min.js" type="text/javascript" charset"utf-8"></script>
<script src="jquery.curvycorners.min.js" type="text/javascript" charset"utf-8"></script>

<script type="text/javascript">
$(document).ready(function(){
$('.sidebarcontainer').css({background: '#3f3f3f'}).corner('round 8px')
});
</script>

</style>

It should look like this:

<style type="text/css">

body {
     background-color: #F7A700;
}
</style>

<script src="jquery-1.3.2.min.js" type="text/javascript" charset"utf-8"></script>
<script src="jquery.curvycorners.min.js" type="text/javascript" charset"utf-8"></script>

<script type="text/javascript">
$(document).ready(function(){
$('.sidebarcontainer').css({background: '#3f3f3f'}).corner('round 8px')
});
</script>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 16, 2009 Dec 16, 2009

Copy link to clipboard

Copied

LATEST

Thank you David, that was the problem. Appreciated.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines